data_service_appname.go 453 B

12345678910111213141516
  1. package models
  2. import (
  3. "time"
  4. )
  5. type DataServiceAppName struct {
  6. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  7. CreateAt time.Time `gorm:"column:create_at" json:"createAt"`
  8. ServiceName string `gorm:"column:service_name;not null" json:"serviceName"`
  9. AppName string `gorm:"column:app_name;not null" json:"appName"`
  10. }
  11. func (d DataServiceAppName) TableName() string {
  12. return "data_service_appname"
  13. }