package dao import "server/global" type ParkingLot struct { global.GVA_MODEL LotCode string `gorm:"size:50;not null;uniqueIndex" json:"lot_code"` // 区域编码 LotName string `gorm:"size:100;not null" json:"lot_name"` // 区域名称 Capacity int `gorm:"not null" json:"capacity"` // 车位数量 Available int `gorm:"not null" json:"available"` // 可用车位 Description string `gorm:"size:200" json:"description"` // 备注 } func (ParkingLot) TableName() string { return "parking_lot" }