2025-03-08 00:35:23 +07:00

22 lines
623 B
Go

package models
import (
"time"
)
type TransactionDB struct {
ID string `gorm:"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"
}