// 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 TableNameProjectUserCoin = "project_user_coin" // ProjectUserCoin mapped from table type ProjectUserCoin struct { ID int64 `gorm:"column:id;type:bigint;primaryKey" 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"` ProjectID int64 `gorm:"column:project_id;type:bigint;not null;comment:项目id" json:"project_id"` UserID int64 `gorm:"column:user_id;type:bigint;not null;index:idx_user_id_expired_at_is_used,priority:1;comment:项目用户ID" json:"user_id"` CoinNum int32 `gorm:"column:coin_num;type:int;not null;comment:积分" json:"coin_num"` CoinUse int32 `gorm:"column:coin_use;type:int;not null;comment:可用积分" json:"coin_use"` ExpiredAt int64 `gorm:"column:expired_at;type:bigint;not null;index:idx_user_id_expired_at_is_used,priority:2;comment:过期时间" json:"expired_at"` IsExpired int8 `gorm:"column:is_expired;type:tinyint;not null;comment:是否会过期(1-是,0-否)" json:"is_expired"` IsUsed int8 `gorm:"column:is_used;type:tinyint;not null;index:idx_user_id_expired_at_is_used,priority:3;comment:是否使用完毕(1-是,0-否)" json:"is_used"` Source string `gorm:"column:source;type:varchar(32);not null;index:uniq_source_id_source,priority:2;comment:来源" json:"source"` SourceID int64 `gorm:"column:source_id;type:bigint;not null;index:uniq_source_id_source,priority:1;comment:来源唯一id" json:"source_id"` SourceData string `gorm:"column:source_data;type:text;not null;comment:来源数据" json:"source_data"` } // TableName ProjectUserCoin's table name func (*ProjectUserCoin) TableName() string { return TableNameProjectUserCoin }