sys_station.gen.go 1.2 KB

1234567891011121314151617181920212223242526272829
  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 TableNameSysStation = "sys_station"
  9. // SysStation mapped from table <sys_station>
  10. type SysStation struct {
  11. ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  12. Stationid int64 `gorm:"column:stationid" json:"stationid,string"` // 变电站ID
  13. Name string `gorm:"column:name" json:"name"` // 变电站名称
  14. Address string `gorm:"column:address" json:"address"` // 变电站地址
  15. Province string `gorm:"column:province" json:"province"` // 所属省份
  16. Region string `gorm:"column:region" json:"region"` // 所属地区
  17. Stationdesc string `gorm:"column:stationdesc" json:"stationdesc"` // 变电站备注信息
  18. CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间
  19. UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间
  20. }
  21. // TableName SysStation's table name
  22. func (*SysStation) TableName() string {
  23. return TableNameSysStation
  24. }