mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
18 lines
367 B
Cheetah
18 lines
367 B
Cheetah
{{define "model"}}package model
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type {{Pascal .Entity}} struct {
|
|
Id uint `gorm:"primaryKey"`
|
|
Name string `gorm:"not null"`
|
|
CreatedBy int64 `gorm:"not null"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
|
|
|
|
CreatedUser model.User `gorm:"foreignKey:CreatedBy;references:Id"`
|
|
}
|
|
{{end}}
|