| 123456789101112131415161718192021 |
- package dao
- import (
- "time"
- "wails-app/internal/global"
- )
- type MonthlyCard struct {
- global.GVA_MODEL
- VehicleID uint `gorm:"index" json:"vehicle_id"`
- Vehicle *Vehicle `gorm:"foreignKey:VehicleID" json:"vehicle"`
- CardType string `gorm:"size:20" json:"card_type"`
- StartDate time.Time `json:"start_date"`
- EndDate time.Time `json:"end_date"`
- Fee float64 `json:"fee"`
- PaymentStatus string `gorm:"size:20;default:paid" json:"payment_status"`
- OperatorID uint `json:"operator_id"`
- Remark string `gorm:"size:200" json:"remark"`
- }
- func (MonthlyCard) TableName() string { return "monthly_card" }
|