Add User Partner and Product
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package entity
|
||||
|
||||
import "time"
|
||||
|
||||
type Wallet struct {
|
||||
ID int64 `gorm:"primaryKey;autoIncrement;column:id"`
|
||||
PartnerID int64 `gorm:"type:int;not null;column:partner_id"`
|
||||
Balance float64 `gorm:"type:decimal(18,2);not null;default:0.00;column:balance"`
|
||||
Currency string `gorm:"type:varchar(3);not null;column:currency"`
|
||||
Status string `gorm:"type:varchar(50);column:status"`
|
||||
CreatedAt time.Time `gorm:"autoCreateTime;column:created_at"`
|
||||
UpdatedAt time.Time `gorm:"autoUpdateTime;column:updated_at"`
|
||||
}
|
||||
|
||||
func (Wallet) TableName() string {
|
||||
return "wallets"
|
||||
}
|
||||
Reference in New Issue
Block a user