22 lines
659 B
Go
22 lines
659 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type TransactionDB struct {
|
|
ID string `gorm:"type:uuid;default:gen_random_uuid();primaryKey;column:id"`
|
|
OrderID int64 `gorm:"column:order_id"`
|
|
Amount float64 `gorm:"column:amount"`
|
|
PaymentMethod string `gorm:"column:payment_method"`
|
|
Status string `gorm:"column:status"`
|
|
CreatedAt time.Time `gorm:"column:created_at"`
|
|
UpdatedAt time.Time `gorm:"column:updated_at"`
|
|
PartnerID int64 `gorm:"column:partner_id"`
|
|
TransactionType string `gorm:"column:transaction_type"`
|
|
}
|
|
|
|
func (TransactionDB) TableName() string {
|
|
return "transactions"
|
|
}
|