// application is app who will use the cloud api package models import ( "github.com/jinzhu/gorm" ) type Application struct { gorm.Model // App-Key for api AppKey string `sql:"type:varchar(200);not null;"` // App-Token for web hook AppToken string `sql:"type:varchar(200);not null;"` // Report Url for web hook ReportUrl string `sql:"type:varchar(200);not null;"` // name AppName string `sql:"type:varchar(200);"` // desc AppDescription string `sql:"type:text;"` // app domain which allows wildcard string like "*", "vendor/12", "product/10" AppDomain string `sql:"type:varchar(200);not null;"` }