diff --git a/models/booking.go b/models/booking.go new file mode 100644 index 0000000..27a9e31 --- /dev/null +++ b/models/booking.go @@ -0,0 +1,28 @@ +package models + +import "time" + +type Booking struct { + BookingReference int `gorm:"primaryKey;index"` + BookingTime *time.Time `gorm:"index"` + Timezone *string + Language *string + CustomData *string + Method *string `gorm:"index"` + Duration *int + BookedDuration *int + ConversationId *string `gorm:"index"` + CancellationTime *time.Time + InterpreterId *int `gorm:"index"` + ClientId *int `gorm:"index"` + AgentName *string + AgentEmail *string + AgentPhone *string + Comments *string + BillingCode *string + TicketId string +} + +func (Booking) TableName() string { + return "gc_bookings" +}