mirror of
https://github.com/serty2005/rmser.git
synced 2026-02-05 03:12:34 -06:00
21 lines
551 B
Go
21 lines
551 B
Go
package catalog
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
// Store - Склад
|
|
type Store struct {
|
|
ID uuid.UUID `gorm:"type:uuid;primary_key;" json:"id"`
|
|
RMSServerID uuid.UUID `gorm:"type:uuid;not null;index" json:"-"`
|
|
|
|
Name string `gorm:"type:varchar(255);not null" json:"name"`
|
|
ParentCorporateID uuid.UUID `gorm:"type:uuid;index" json:"parent_corporate_id"`
|
|
IsDeleted bool `gorm:"default:false" json:"is_deleted"`
|
|
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|