package models // CrmPaymentConfig is a model that stores Payment Configuration records from CRM. // // - The intention of the model is to map JSON -> struct -> JSON // - To improve usability, GORM 'column' tags have been used to map CRM API names into more descriptive names. // // Table Schema: // // Primary Key: ID // Indexes: ID type CrmPaymentConfig struct { ID string `gorm:"primaryKey;column:id" json:"id"` Name string `gorm:"column:name;not null" json:"name"` BHEndHour *int `gorm:"column:bh_end_hour" json:"bh_end_hour"` BHEndMinute *int `gorm:"column:bh_end_minute" json:"bh_end_minute"` BHStartHour *int `gorm:"column:bh_start_hour" json:"bh_start_hour"` BHStartMinute *int `gorm:"column:bh_start_minute" json:"bh_start_minute"` OnDemand *string `gorm:"column:on_demand" json:"on_demand"` AudioBooking *string `gorm:"column:audio_booking" json:"audio_booking"` VideoBooking *string `gorm:"column:video_booking" json:"video_booking"` TimeZone *string `gorm:"column:time_zone" json:"time_zone"` } func (CrmPaymentConfig) TableName() string { return "live_payment_configs" }