application.go 613 B

12345678910111213141516171819202122
  1. // application is app who will use the cloud api
  2. package models
  3. import (
  4. "github.com/jinzhu/gorm"
  5. )
  6. type Application struct {
  7. gorm.Model
  8. // App-Key for api
  9. AppKey string `sql:"type:varchar(200);not null;"`
  10. // App-Token for web hook
  11. AppToken string `sql:"type:varchar(200);not null;"`
  12. // Report Url for web hook
  13. ReportUrl string `sql:"type:varchar(200);not null;"`
  14. // name
  15. AppName string `sql:"type:varchar(200);"`
  16. // desc
  17. AppDescription string `sql:"type:text;"`
  18. // app domain which allows wildcard string like "*", "vendor/12", "product/10"
  19. AppDomain string `sql:"type:varchar(200);not null;"`
  20. }