gorm_models/models/crm_language.go

22 lines
628 B
Go

package models
// CrmLanguage is a model that stores Language 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 CrmLanguage struct {
ID int `gorm:"primaryKey;column:id" json:"id"`
Name *string `gorm:"column:name" json:"name"`
Active *bool `gorm:"column:active" json:"active"`
CRMID *string `gorm:"column:crm_id" json:"crm_id"`
}
func (CrmLanguage) TableName() string {
return "live_languages"
}