package model

type Payment struct {
	ID                 int     `gorm:"primaryKey;column:id" json:"id"`
	Name               string  `gorm:"column:name" json:"name"`
	Payment            string  `gorm:"column:payment" json:"payment"`
	Icon               *string `gorm:"column:icon" json:"icon"`
	Config             *string `gorm:"column:config" json:"config"`
	HandlingFeeFixed   *int64  `gorm:"column:handling_fee_fixed" json:"handling_fee_fixed"`
	HandlingFeePercent *int64  `gorm:"column:handling_fee_percent" json:"handling_fee_percent"`
	Enable             bool    `gorm:"column:enable" json:"enable"`
	Sort               *int    `gorm:"column:sort" json:"sort"`
	CreatedAt          int64   `gorm:"column:created_at" json:"created_at"`
	UpdatedAt          int64   `gorm:"column:updated_at" json:"updated_at"`
}

func (Payment) TableName() string {
	return "v2_payment"
}
