shift_record.go 696 B

12345678910111213141516171819202122
  1. package dao
  2. import (
  3. "time"
  4. "wails-app/internal/global"
  5. )
  6. type ShiftRecord struct {
  7. global.GVA_MODEL
  8. OperatorID uint `gorm:"index" json:"operator_id"`
  9. StartTime time.Time `json:"start_time"`
  10. EndTime *time.Time `json:"end_time"`
  11. StartingCash float64 `json:"starting_cash"`
  12. CollectedCash float64 `json:"collected_cash"`
  13. ExpectedTotal float64 `json:"expected_total"`
  14. ActualTotal float64 `json:"actual_total"`
  15. Difference float64 `json:"difference"`
  16. Status string `gorm:"size:20;default:active" json:"status"`
  17. Remark string `gorm:"size:200" json:"remark"`
  18. }
  19. func (ShiftRecord) TableName() string { return "shift_record" }