monthly_card.go 666 B

123456789101112131415161718192021
  1. package dao
  2. import (
  3. "time"
  4. "wails-app/internal/global"
  5. )
  6. type MonthlyCard struct {
  7. global.GVA_MODEL
  8. VehicleID uint `gorm:"index" json:"vehicle_id"`
  9. Vehicle *Vehicle `gorm:"foreignKey:VehicleID" json:"vehicle"`
  10. CardType string `gorm:"size:20" json:"card_type"`
  11. StartDate time.Time `json:"start_date"`
  12. EndDate time.Time `json:"end_date"`
  13. Fee float64 `json:"fee"`
  14. PaymentStatus string `gorm:"size:20;default:paid" json:"payment_status"`
  15. OperatorID uint `json:"operator_id"`
  16. Remark string `gorm:"size:200" json:"remark"`
  17. }
  18. func (MonthlyCard) TableName() string { return "monthly_card" }