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.4 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 TableNameProjectUserCoinDeduct = "project_user_coin_deduct"
// ProjectUserCoinDeduct mapped from table <project_user_coin_deduct>
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
}