package net.nosegrind.apiframework

import java.util.Date

class Hook {
	
	Person user
	String url
	String format = 'JSON'
	String service
	Long attempts = 0
	Boolean isEnabled = true
	Date dateCreated
	Date lastModified = new Date()

	
	static constraints = {
		user(nullable:false)
		url(nullable:false)
		format(nullable:false)
		service()
		attempts()
	}

}
