rentease/internal/domains/booking/models.go
2024-02-05 21:53:24 +01:00

32 lines
583 B
Go

package booking
import (
"time"
"gorm.io/gorm"
)
type Booking struct {
gorm.Model
Id int
Name string `gorm:"column:customer_name"`
PhoneNumber string
CustomerNumber string `gorm:"column:customers"`
Email string
From time.Time
To time.Time
Platform string
PlatformFees string
Items []Item
}
type Item struct {
gorm.Model
Id int
BookingId int
Item string
Quantity int
Price string
PaymentMethod string
PaymentStatus string `gorm:"default:Pending"`
}