video_action.gen.go 1.2 KB

12345678910111213141516171819202122232425262728
  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 TableNameVideoAction = "video_action"
  9. // VideoAction mapped from table <video_action>
  10. type VideoAction struct {
  11. ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"` // 视频设备动作表
  12. Actid int64 `gorm:"column:actid" json:"actid,string"` // 动作ID。全局唯一
  13. Mpid int64 `gorm:"column:mpid" json:"mpid,string"` // 测点ID。全局唯一
  14. Acttype int32 `gorm:"column:acttype" json:"acttype"` // 动作分类。录像-1,拍照-2,录像并拍照-3,4-无
  15. Actdesc int32 `gorm:"column:actdesc" json:"actdesc"` // 快照次数
  16. Value int32 `gorm:"column:value" json:"value"` // 录像时长 。单位秒
  17. CreateAt time.Time `gorm:"->" json:"create_at" c:"-"` // 创建时间
  18. UpdateAt time.Time `gorm:"->" json:"update_at" c:"-"` // 更新时间
  19. }
  20. // TableName VideoAction's table name
  21. func (*VideoAction) TableName() string {
  22. return TableNameVideoAction
  23. }