You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.4 KiB
Go

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
const TableNameRewardRelated = "reward_related"
// RewardRelated mapped from table <reward_related>
type RewardRelated struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey;autoIncrement:true" json:"id"`
CreatedAt int64 `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
UpdatedAt int64 `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
RewardID int64 `gorm:"column:reward_id;type:bigint;not null;uniqueIndex:uniq_reward_id_relate_id_relate_table,priority:1;index:idx_relate_id_relate_table,priority:1;comment:奖品id(reward表)" json:"reward_id"`
RelateID int64 `gorm:"column:relate_id;type:bigint;not null;uniqueIndex:uniq_reward_id_relate_id_relate_table,priority:2;index:idx_relate_id_relate_table,priority:2;comment:关联id" json:"relate_id"`
RelateTable string `gorm:"column:relate_table;type:varchar(64);not null;uniqueIndex:uniq_reward_id_relate_id_relate_table,priority:3;comment:关联表名" json:"relate_table"`
CancelTime int64 `gorm:"column:cancel_time;type:bigint;not null;uniqueIndex:uniq_reward_id_relate_id_relate_table,priority:4;comment:取消关联时间" json:"cancel_time"`
}
// TableName RewardRelated's table name
func (*RewardRelated) TableName() string {
return TableNameRewardRelated
}