Files
elevator-server/model/DevUpData.go
2025-01-07 13:50:42 +08:00

25 lines
825 B
Go

package model
import (
"DT/global"
"gorm.io/gorm"
"time"
)
type DevUpData struct {
Id int `gorm:"column:id;primaryKey" json:"id"`
Imei string `gorm:"column:imei;comment:IMEI;type:varchar(255)" json:"imei"`
Sum string `gorm:"column:sum;comment:IMEI;type:varchar(255)" json:"sum"`
Time string `gorm:"column:time;comment:IMEI;type:varchar(255)" json:"time"`
Mile string `gorm:"column:mile;comment:IMEI;type:varchar(255)" json:"mile"`
Created time.Time `gorm:"column:created;autoCreateTime;comment:创建时间" json:"created"`
Updated time.Time `gorm:"column:updated;autoUpdateTime;comment:修改时间" json:"updated"`
DeletedAt gorm.DeletedAt `gorm:"index;comment:删除时间" json:"-"`
}
func (r *DevUpData) TableName() string {
return global.AppConf.Db.TablePrefix + "dev_up_data"
}