video_devinfo.gen.go 1.8 KB

123456789101112131415161718192021222324252627282930313233
  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 TableNameVideoDevinfo = "video_devinfo"
  9. // VideoDevinfo mapped from table <video_devinfo>
  10. type VideoDevinfo struct {
  11. ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` // 视频设备信息表
  12. Deviceid int32 `gorm:"column:deviceid" json:"deviceid"` // 设备ID。视频采集框架返回
  13. Devicename string `gorm:"column:devicename" json:"devicename"` // 设备名称
  14. Devicecode int32 `gorm:"column:devicecode" json:"devicecode"` // 设备编码。nvr/ipc, 表示是网络摄像机或者是网络摄像头
  15. Stationid int32 `gorm:"column:stationid" json:"stationid"` // 所属变电站ID
  16. Appid int32 `gorm:"column:appid" json:"appid"` // 所属APP ID
  17. IP string `gorm:"column:ip" json:"ip"` // IP地址
  18. Manufacturer string `gorm:"column:manufacturer" json:"manufacturer"` // 厂商名称
  19. Model string `gorm:"column:model" json:"model"` // 型号
  20. Rtspurl string `gorm:"column:rtspurl" json:"rtspurl"` // 视频流地址
  21. Online int32 `gorm:"column:online" json:"online"` // 设备在线状态 1离线 /2 在线
  22. CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间
  23. UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间
  24. }
  25. // TableName VideoDevinfo's table name
  26. func (*VideoDevinfo) TableName() string {
  27. return TableNameVideoDevinfo
  28. }