// 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 TableNameProjectUserCoinDeduct = "project_user_coin_deduct" // ProjectUserCoinDeduct mapped from table type ProjectUserCoinDeduct 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;uniqueIndex:uniq_user_id_relate_id_source,priority:1" json:"user_id"` Source string `gorm:"column:source;type:varchar(32);not null;uniqueIndex:uniq_user_id_relate_id_source,priority:3;comment:扣除方式(sytem-系统,app-第三方应用)" json:"source"` RelateMark string `gorm:"column:relate_mark;type:varchar(32);not null;comment:关联标识" json:"relate_mark"` RelateID int64 `gorm:"column:relate_id;type:bigint;not null;uniqueIndex:uniq_user_id_relate_id_source,priority:2;comment:关联id" json:"relate_id"` Operate string `gorm:"column:operate;type:varchar(64);not null;comment:操作标识" json:"operate"` Num int32 `gorm:"column:num;type:int;not null;comment:扣除数量" json:"num"` } // TableName ProjectUserCoinDeduct's table name func (*ProjectUserCoinDeduct) TableName() string { return TableNameProjectUserCoinDeduct }