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.

25 lines
1.3 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 TableNameProjectUserCoinUse = "project_user_coin_use"
// ProjectUserCoinUse mapped from table <project_user_coin_use>
type ProjectUserCoinUse struct {
ID int64 `gorm:"column:id;type:bigint;primaryKey" json:"id"`
CreatedAt int64 `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
UserID int64 `gorm:"column:user_id;type:bigint;not null;index:idx_user_id,priority:1" json:"user_id"`
Num int32 `gorm:"column:num;type:int;not null" json:"num"`
Source string `gorm:"column:source;type:varchar(32);not null;index:idx_source_id_source,priority:2;comment:使用来源(campaign-活动,center-任务中心)" json:"source"`
SourceID int64 `gorm:"column:source_id;type:bigint;not null;index:idx_source_id_source,priority:1;comment:使用来源id" json:"source_id"`
Operate string `gorm:"column:operate;type:varchar(64);not null;comment:操作标识" json:"operate"`
CoinIds string `gorm:"column:coin_ids;type:text;not null;comment:扣除关联的积分id" json:"coin_ids"`
}
// TableName ProjectUserCoinUse's table name
func (*ProjectUserCoinUse) TableName() string {
return TableNameProjectUserCoinUse
}