21 lines
873 B
Go
21 lines
873 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type DataRecord struct {
|
|
ID string `json:"id" gorm:"type:varchar(32);primaryKey"`
|
|
|
|
Value string `json:"value" gorm:"type:text;not null"`
|
|
IndicatorParamID string `json:"indicatorParamId" gorm:"type:varchar(32);not null;index"`
|
|
PointID string `json:"pointId" gorm:"type:varchar(32);not null;index"`
|
|
TaskID string `json:"taskId" gorm:"type:varchar(32);not null;index"`
|
|
CollectedAt time.Time `json:"collectedAt" gorm:"not null;index"`
|
|
|
|
CreatorUserID string `json:"creatorUserId" gorm:"type:varchar(32);not null;index"`
|
|
|
|
Remark string `json:"remark" gorm:"type:varchar(255);default:''"`
|
|
Deleted bool `json:"deleted" gorm:"not null;default:false;index"`
|
|
CreatedAt time.Time `json:"createdAt" gorm:"autoCreateTime"`
|
|
UpdatedAt time.Time `json:"updatedAt" gorm:"autoUpdateTime"`
|
|
}
|