package models

import "time"

type WalletTransaction struct {
	ID              uint      `gorm:"primaryKey" json:"id"`
	Amount          float64   `gorm:"column:amount" json:"amount"`
	UserID          uint      `gorm:"column:userId" json:"userId"`
	TransactionType string    `gorm:"column:transactionType" json:"transactionType"`
	OrderID         *string   `gorm:"column:orderId" json:"orderId,omitempty"`
	CreatedBy       *uint     `gorm:"column:createdBy" json:"createdBy,omitempty"`
	ModifiedBy      *uint     `gorm:"column:modifiedBy" json:"modifiedBy,omitempty"`
	IsCredit        bool      `gorm:"column:isCredit" json:"isCredit"`
	AstrologerID    *uint     `gorm:"column:astrologerId" json:"astrologerId,omitempty"`
	CreatedAt       time.Time `gorm:"column:created_at" json:"created_at"`
	UpdatedAt       time.Time `gorm:"column:updated_at" json:"updated_at"`
}

func (WalletTransaction) TableName() string {
	return "wallettransaction"
}
