advertisement_space.gen.go 949 B

12345678910111213141516171819202122232425
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. )
  8. const TableNameAdvertisementSpace = "advertisement_space"
  9. // AdvertisementSpace mapped from table <advertisement_space>
  10. type AdvertisementSpace struct {
  11. ID int64 `gorm:"column:id;type:bigint(20);primaryKey;autoIncrement:true" json:"id"`
  12. PositionID int32 `gorm:"column:position_id;type:int(11);not null" json:"position_id"` // 广告位id
  13. Name string `gorm:"column:name;type:varchar(255);not null" json:"name"` // 广告位名称
  14. CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
  15. UpdatedAt time.Time `gorm:"column:updated_at;type:datetime" json:"updated_at"`
  16. }
  17. // TableName AdvertisementSpace's table name
  18. func (*AdvertisementSpace) TableName() string {
  19. return TableNameAdvertisementSpace
  20. }