{{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}}