oldapp.go 518 B

123456789101112131415161718
  1. package databus
  2. import "go-common/library/time"
  3. // TableName case tablename
  4. func (*OldApp) TableName() string {
  5. return "app"
  6. }
  7. // OldApp app model
  8. type OldApp struct {
  9. ID int64 `gorm:"column:id" json:"id"`
  10. AppKey string `gorm:"column:app_key" json:"app_key"`
  11. AppSecret string `gorm:"column:app_secret" json:"app_secret"`
  12. Cluster string `gorm:"column:cluster" json:"cluster"`
  13. Ctime time.Time `gorm:"column:ctime" json:"ctime"`
  14. Mtime time.Time `gorm:"column:mtime" json:"-"`
  15. }