// Models generated by mesh dev cli,@Author: David Yan(david.yan@qq.com).
package models

import (
	"time"

	"git.apinb.com/bsm-sdk/core/database"
	"git.apinb.com/bsm-sdk/core/types"
)

/*
 * PassportRightsExpiry
 * Comment: 通行证特权有效期记录表
 * Version: 10
 * Created: 2022-04-11 17:33:50 , Updated:0001-01-01 00:00:00
 */
type PassportRightsExpiry struct {
	types.Std_IICUDS
	types.Std_Passport
	Rights    string    `gorm:"default:'';" json:"rights"` // 特权名称
	StartDate time.Time `json:"start_date"`                // 生效日期
	EndDate   time.Time `json:"end_date"`                  // 结束日期
	Remark    string    `gorm:"default:'';" json:"remark"` // 备注

}

func init() {
	database.AppendMigrate(&PassportRightsExpiry{})
}

// TableName .
func (table *PassportRightsExpiry) TableName() string {
	return "passport_rights_expiry" //对应数据库表名
}
