This commit is contained in:
2025-01-04 20:21:05 +01:00
commit a08e708a3b
11 changed files with 435 additions and 0 deletions

14
models/booking.go Normal file
View 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"`
}