// 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 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 }