-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfairLaunchIncome.go
28 lines (24 loc) · 1.11 KB
/
fairLaunchIncome.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package models
import "gorm.io/gorm"
type FairLaunchIncomeType int
type FairLaunchIncome struct {
gorm.Model
AssetId string `json:"asset_id" gorm:"type:varchar(255);index"`
FairLaunchInfoId int `json:"fair_launch_info_id" gorm:"index"`
FairLaunchMintedInfoId int `json:"fair_launch_minted_info_id" gorm:"index"`
FeePaidId int `json:"fee_paid_id"`
IncomeType FairLaunchIncomeType `json:"income_type" gorm:"index"`
IsIncome bool `json:"is_income" gorm:"index"`
SatAmount int `json:"sat_amount" gorm:"index"`
Txid string `json:"txid" gorm:"index"`
Addrs string `json:"addrs"`
UserId int `json:"user_id" gorm:"index"`
Username string `json:"username" gorm:"type:varchar(255)"`
}
const (
UserPayIssuanceFee FairLaunchIncomeType = iota
ServerPayIssuanceFinalizeFee
ServerPaySendReservedFee
UserPayMintedFee
ServerPaySendAssetFee
)