1234567891011121314151617181920212223242526272829303132 |
- package model
- import (
- "time"
- "gorm.io/gorm"
- )
- const TableNameWorkExperience = "work_experience"
- type WorkExperience 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"`
- StartDate time.Time `gorm:"column:start_date;comment:开始时间" json:"start_date"`
- EndDate time.Time `gorm:"column:end_date;comment:结束时间" json:"end_date"`
- Company string `gorm:"column:company;comment:公司名" json:"company"`
- Experience string `gorm:"column:experience;comment:工作内容" json:"experience"`
- OrganizationID int64 `gorm:"column:organization_id;comment:机构ID" json:"organization_id"`
- }
- func (*WorkExperience) TableName() string {
- return TableNameWorkExperience
- }
|