12345678910111213141516171819202122232425262728293031 |
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameTutorial = "tutorial"
- type Tutorial struct {
- ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
- EmployeeID int64 `gorm:"column:employee_id;comment:员工ID" json:"employee_id"`
- CreatedAt time.Time `gorm:"column:created_at;comment:Create Time | 创建日期" json:"created_at"`
- UpdatedAt time.Time `gorm:"column:updated_at;comment:Update Time | 修改日期" json:"updated_at"`
- DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"`
- Index int64 `gorm:"column:index;comment:序号" json:"index"`
- Title string `gorm:"column:title;comment:标题" json:"title"`
- Content string `gorm:"column:content;comment:内容" json:"content"`
- OrganizationID int64 `gorm:"column:organization_id;comment:机构ID" json:"organization_id"`
- }
- func (*Tutorial) TableName() string {
- return TableNameTutorial
- }
|