package types
|
|
|
|
import (
|
|
"time"
|
|
|
|
"gorm.io/gorm"
|
|
)
|
|
|
|
/*
|
|
Base Model
|
|
*/
|
|
|
|
type Building struct {
|
|
ID uint64 `gorm:"primarykey" json:"id"`
|
|
Name string `json:"name"`
|
|
ShelfLocations []ShelfLocation `json:"shelves"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
DeletedAt gorm.DeletedAt `gorm:"index" json:"deleted_at,omitempty"`
|
|
}
|
|
|
|
/*
|
|
Requests
|
|
*/
|
|
|
|
/*
|
|
Responses
|
|
*/
|