update 16 mei urutan dan tampilan user admin
This commit is contained in:
@@ -19,12 +19,12 @@ type User struct {
|
||||
}
|
||||
|
||||
type Room struct {
|
||||
RoomID uint `gorm:"primaryKey" json:"room_id"`
|
||||
Name string `gorm:"not null" json:"name"`
|
||||
Category string `gorm:"not null" json:"category"`
|
||||
Capacity int `gorm:"not null" json:"capacity"`
|
||||
Floor string `gorm:"not null" json:"floor"`
|
||||
Status string `gorm:"type:room_status;default:'Available'" json:"status"`
|
||||
RoomID uint `gorm:"primaryKey;column:room_id" json:"room_id"`
|
||||
Name string `json:"name"`
|
||||
Category string `json:"category"`
|
||||
Floor string `json:"floor"`
|
||||
Capacity int `json:"capacity"`
|
||||
Status string `json:"status"`
|
||||
PowerConsumption float64 `json:"power_consumption" gorm:"default:0"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user