Files
lti-api/internal/entities/project_chickin.go
T

25 lines
696 B
Go

package entities
import (
"time"
"gorm.io/gorm"
)
const ()
type ProjectChickin struct {
Id uint `gorm:"primaryKey"`
ProjectFlocId uint `gorm:"not null"`
ChickInDate time.Time `gorm:"not null"`
Quantity float64 `gorm:"not null"`
Note string `gorm:"type:text"`
CreatedBy uint `gorm:"not null"`
CreatedAt time.Time `gorm:"autoCreateTime"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
ProjectFlock ProjectFlock `gorm:"foreignKey:ProjectFlocId;references:Id"`
CreatedUser User `gorm:"foreignKey:CreatedBy;references:Id"`
}