package localization import "time" // BaseModel contains common fields for all models type BaseModel struct { ID uint `gorm:"primaryKey"` CreatedAt time.Time UpdatedAt time.Time } // Localization represents a key-value pair for a specific language. type Localization struct { BaseModel Key string `gorm:"size:255;not null;uniqueIndex:uniq_localization_key_language"` Value string `gorm:"type:text;not null"` Language string `gorm:"size:50;not null;uniqueIndex:uniq_localization_key_language"` }