22 lines
527 B
Go
Raw Normal View History

2025-06-14 21:17:13 +07:00
package models
import "time"
type CashierSessionDB struct {
ID int64 `gorm:"primaryKey"`
2025-06-27 13:01:39 +07:00
PartnerID int64 `gorm:"not null"`
2025-06-14 21:17:13 +07:00
CashierID int64 `gorm:"not null"`
OpenedAt time.Time `gorm:"not null"`
ClosedAt *time.Time
OpeningAmount float64 `gorm:"not null"`
ClosingAmount *float64
ExpectedAmount *float64
Notes *string
Status string `gorm:"not null"`
CreatedAt time.Time
}
func (CashierSessionDB) TableName() string {
return "cashier_sessions"
}