Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bd807b3b1d | |||
| 1872e23ec1 |
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"
|
||||||
|
}
|
||||||
@@ -2,6 +2,73 @@ package models
|
|||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
||||||
|
type DBTicket struct {
|
||||||
|
AccountId int
|
||||||
|
ApprovalCount int
|
||||||
|
Assignee string `gorm:"type:json"`
|
||||||
|
AssigneeId int
|
||||||
|
AttachmentCount int
|
||||||
|
Category string
|
||||||
|
CF string `gorm:"type:json"`
|
||||||
|
Channel string
|
||||||
|
ChannelCode string
|
||||||
|
ChannelRelatedInfo string
|
||||||
|
Classification string
|
||||||
|
ClosedTime *time.Time
|
||||||
|
CommentCount int
|
||||||
|
Contact string `gorm:"type:json"`
|
||||||
|
ContactId int
|
||||||
|
CreatedBy int
|
||||||
|
CreatedTime time.Time
|
||||||
|
CustomerResponseTime time.Time
|
||||||
|
DepartmentId int
|
||||||
|
DescAttachments string `gorm:"type:json"`
|
||||||
|
Description string
|
||||||
|
DueDate *time.Time
|
||||||
|
Email string
|
||||||
|
EntitySkills string `gorm:"type:json"`
|
||||||
|
FirstThread string `gorm:"type:json"`
|
||||||
|
FollowerCount int
|
||||||
|
Id string `gorm:"primaryKey"`
|
||||||
|
IsArchived bool
|
||||||
|
IsDeleted bool
|
||||||
|
IsEscalated bool
|
||||||
|
IsOverdue bool
|
||||||
|
IsResponseOverdue bool
|
||||||
|
IsSpam bool
|
||||||
|
IsTrashed bool
|
||||||
|
Language string
|
||||||
|
LayoutDetails string `gorm:"type:json"`
|
||||||
|
LayoutId int
|
||||||
|
ModifiedBy int
|
||||||
|
ModifiedTime time.Time
|
||||||
|
OnHoldTime *time.Time
|
||||||
|
Phone string
|
||||||
|
Priority string
|
||||||
|
ProductId string
|
||||||
|
Resolution string
|
||||||
|
ResponseDueDate *time.Time
|
||||||
|
SecondaryContacts string `gorm:"type:json"`
|
||||||
|
Sentiment string
|
||||||
|
SharedDepartments string `gorm:"type:json"`
|
||||||
|
Source string `gorm:"type:json"`
|
||||||
|
Status string
|
||||||
|
StatusType string
|
||||||
|
SubCategory string
|
||||||
|
Subject string
|
||||||
|
TagCount int
|
||||||
|
TaskCount int
|
||||||
|
TeamId int
|
||||||
|
ThreadCount int
|
||||||
|
TicketNumber int
|
||||||
|
TimeEntryCount int
|
||||||
|
WebUrl string
|
||||||
|
}
|
||||||
|
|
||||||
|
func (DBTicket) TableName() string {
|
||||||
|
return "zoho_live_tickets"
|
||||||
|
}
|
||||||
|
|
||||||
type Ticket struct {
|
type Ticket struct {
|
||||||
TicketID string `gorm:"primaryKey;column:ticket_id" json:"ticket_id"`
|
TicketID string `gorm:"primaryKey;column:ticket_id" json:"ticket_id"`
|
||||||
TicketReferenceID *string `gorm:"column:ticket_reference_id" json:"ticket_reference_id"`
|
TicketReferenceID *string `gorm:"column:ticket_reference_id" json:"ticket_reference_id"`
|
||||||
|
|||||||
Reference in New Issue
Block a user