rentease/internal/domains/booking/models.go

32 lines
558 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
}