Files
lti-api/internal/entities/fcr.go

20 lines
571 B
Go

package entities
import (
"time"
"gorm.io/gorm"
)
type Fcr struct {
Id uint `gorm:"primaryKey"`
Name string `gorm:"type:varchar(50);not null;uniqueIndex:idx_suppliers_name,where:deleted_at IS NULL"`
CreatedBy uint `gorm:"not null"`
CreatedAt time.Time `gorm:"autoCreateTime"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
CreatedUser User `gorm:"foreignKey:CreatedBy;references:Id"`
Standards []FcrStandard `gorm:"foreignKey:FcrID;references:Id"`
}