init
This commit is contained in:
14
models/booking.go
Normal file
14
models/booking.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package models
|
||||
|
||||
import (
|
||||
"time"
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type Booking struct {
|
||||
gorm.Model
|
||||
RoomID uint `gorm:"not null"`
|
||||
UserID uint `gorm:"not null"`
|
||||
StartTime time.Time `gorm:"not null"`
|
||||
EndTime time.Time `gorm:"not null"`
|
||||
}
|
||||
Reference in New Issue
Block a user