Files
zineshop/models/booking.go
2025-01-04 20:21:05 +01:00

15 lines
248 B
Go

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"`
}