package catalog import ( "time" "github.com/google/uuid" ) // Store - Склад (в терминологии iiko: Entity с типом Account и подтипом INVENTORY_ASSETS) type Store struct { ID uuid.UUID `gorm:"type:uuid;primary_key;" json:"id"` Name string `gorm:"type:varchar(255);not null" json:"name"` ParentCorporateID uuid.UUID `gorm:"type:uuid;index" json:"parent_corporate_id"` // ID юр.лица/торгового предприятия IsDeleted bool `gorm:"default:false" json:"is_deleted"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }