22 lines
817 B
Go
22 lines
817 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type OaHoliday struct {
|
|
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
|
Date string `orm:"column(date);size(10);unique" json:"date"`
|
|
Name string `orm:"column(name);size(64);default()" json:"name"`
|
|
Type int8 `orm:"column(type);default(0)" json:"type"`
|
|
Year int `orm:"column(year);index" json:"year"`
|
|
Wage int8 `orm:"column(wage);default(1)" json:"wage"`
|
|
Source string `orm:"column(source);size(20);default()" json:"source"`
|
|
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
|
UpdateTime *time.Time `orm:"column(update_time);auto_now;type(datetime);null" json:"update_time"`
|
|
}
|
|
|
|
func (m *OaHoliday) TableName() string {
|
|
return "yz_backend_oa_holiday"
|
|
}
|