Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bd807b3b1d |
28
models/booking.go
Normal file
28
models/booking.go
Normal file
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user