package dao

import (
	"time"
	"wails-app/internal/global"
)

type ShiftRecord struct {
	global.GVA_MODEL
	OperatorID    uint       `gorm:"index" json:"operator_id"`
	StartTime     time.Time  `json:"start_time"`
	EndTime       *time.Time `json:"end_time"`
	StartingCash  float64    `json:"starting_cash"`
	CollectedCash float64    `json:"collected_cash"`
	ExpectedTotal float64    `json:"expected_total"`
	ActualTotal   float64    `json:"actual_total"`
	Difference    float64    `json:"difference"`
	Status        string     `gorm:"size:20;default:active" json:"status"`
	Remark        string     `gorm:"size:200" json:"remark"`
}

func (ShiftRecord) TableName() string { return "shift_record" }
