13 lines
378 B
Go
13 lines
378 B
Go
package models
|
|
|
|
// Lot represents existing lot table
|
|
type Lot struct {
|
|
LotName string `gorm:"column:lot_name;primaryKey;size:255" json:"lot_name"`
|
|
LotDescription string `gorm:"column:lot_description;size:10000" json:"lot_description"`
|
|
LotCategory *string `gorm:"column:lot_category;size:50" json:"lot_category"`
|
|
}
|
|
|
|
func (Lot) TableName() string {
|
|
return "lot"
|
|
}
|