package models

import "time"

type UserWallet struct {
	ID uint `gorm:"primaryKey;autoIncrement" json:"id"`
	UserID uint `gorm:"column:userId;not null;index" json:"userId"`
	Amount *float64 `gorm:"column:amount;type:decimal(8,2)" json:"amount,omitempty"`
	IsActive bool `gorm:"column:isActive"`
	IsDelete bool `gorm:"column:isDelete"`	
	CreatedAt *time.Time `gorm:"column:created_at" json:"created_at,omitempty"`
	UpdatedAt *time.Time `gorm:"column:updated_at" json:"updated_at,omitempty"`
	CreatedBy int `gorm:"column:createdBy" json:"createdBy"`
	ModifiedBy int `gorm:"column:modifiedBy" json:"modifiedBy"`
	
}

func (UserWallet) TableName() string {
	return "user_wallets"
}