video使用原来的id不使用gorm.model
This commit is contained in:
parent
a10830f820
commit
288feb822c
|
|
@ -1,12 +1,11 @@
|
||||||
package dao
|
package dao
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gorm.io/gorm"
|
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Video struct {
|
type Video struct {
|
||||||
gorm.Model
|
ID uint `gorm:"primarykey column:id"`
|
||||||
CameraID int `gorm:"column:camera_id"`
|
CameraID int `gorm:"column:camera_id"`
|
||||||
VideoPath string `gorm:"column:video_path"`
|
VideoPath string `gorm:"column:video_path"`
|
||||||
VideoName string `gorm:"column:video_name"`
|
VideoName string `gorm:"column:video_name"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue