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.

30 lines
1.9 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 TableNameProjectUserCoin = "project_user_coin"
// ProjectUserCoin mapped from table <project_user_coin>
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
}