datamodel

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AncestorAdmin

type AncestorAdmin struct {
	Uuid        string       `json:"uuid"`
	Code        string       `json:"code"`
	Name        pgtype.JSONB `json:"name"`
	Description pgtype.JSONB `json:"description"`
	SortOrder   int64        `json:"sort_order" db:"sort_order"`
	Image       pgtype.JSONB `json:"image"`
	Info        pgtype.JSONB `json:"info"`
	IsActive    bool         `json:"is_active" db:"is_active"`
	CreatedAt   pgtype.Date  `json:"created_at" db:"created_at"`
	UpdatedAt   pgtype.Date  `json:"updated_at" db:"updated_at"`
	DeletedAt   pgtype.Date  `json:"deleted_at" db:"deleted_at"`
}

type AncestorFront

type AncestorFront struct {
	Uuid        string       `json:"uuid"`
	Code        string       `json:"code"`
	Name        string       `json:"name"`
	Description string       `json:"description"`
	SortOrder   int64        `json:"sort_order" db:"sort_order"`
	Image       pgtype.JSONB `json:"image"`
	Info        pgtype.JSONB `json:"info"`
}

type AncestorInfo

type AncestorInfo struct {
	ServiceName string `json:"service_name"`
}

type AttributeAdmin

type AttributeAdmin struct {
	Uuid        uuid.UUID    `json:"uuid"`
	Code        string       `json:"code"`
	Name        pgtype.JSONB `json:"name"`
	Description pgtype.JSONB `json:"description"`
	SortOrder   int64        `json:"sort_order" db:"sort_order"`
	Image       pgtype.JSONB `json:"image"`
	IsActive    bool         `json:"is_active" db:"is_active"`
	CreatedAt   pgtype.Date  `json:"created_at" db:"created_at"`
	UpdatedAt   pgtype.Date  `json:"updated_at" db:"updated_at"`
	DeletedAt   pgtype.Date  `json:"deleted_at" db:"deleted_at"`
}

type AttributeFront

type AttributeFront struct {
	Uuid        uuid.UUID    `json:"uuid"`
	Code        string       `json:"code"`
	Name        string       `json:"name"`
	Description string       `json:"description"`
	SortOrder   int64        `json:"sort_order" db:"sort_order"`
	Image       pgtype.JSONB `json:"image"`
}

type BuyerAdmin

type BuyerAdmin struct {
	Uuid        uuid.UUID    `json:"uuid"`
	Phone       string       `json:"phone"`
	Name        string       `json:"name"`
	Email       pgtype.JSONB `json:"email"`
	Description pgtype.JSONB `json:"description"`
	SortOrder   int64        `json:"sort_order" db:"sort_order"`
	Image       pgtype.JSONB `json:"image"`
	IsActive    bool         `json:"is_active" db:"is_active"`
	CreatedAt   pgtype.Date  `json:"created_at" db:"created_at"`
	UpdatedAt   pgtype.Date  `json:"updated_at" db:"updated_at"`
	DeletedAt   pgtype.Date  `json:"deleted_at" db:"deleted_at"`
}

type BuyerFront

type BuyerFront struct {
	Uuid        uuid.UUID    `json:"uuid"`
	Phone       string       `json:"phone"`
	Name        string       `json:"name"`
	Email       pgtype.JSONB `json:"email"`
	Description string       `json:"description"`
	SortOrder   int64        `json:"sort_order" db:"sort_order"`
	Image       pgtype.JSONB `json:"image"`
}

type CategoryAdmin

type CategoryAdmin struct {
	Uuid         uuid.UUID    `json:"uuid"`
	Code         string       `json:"code"`
	Name         pgtype.JSONB `json:"name"`
	Description  pgtype.JSONB `json:"description"`
	SortOrder    int64        `json:"sort_order" db:"sort_order"`
	Image        pgtype.JSONB `json:"image"`
	AncestorUuid uuid.UUID    `json:"ancestor_uuid" db:"ancestor_uuid"`
	IsActive     bool         `json:"is_active" db:"is_active"`
	CreatedAt    pgtype.Date  `json:"created_at" db:"created_at"`
	UpdatedAt    pgtype.Date  `json:"updated_at" db:"updated_at"`
	DeletedAt    pgtype.Date  `json:"deleted_at" db:"deleted_at"`
}

type CategoryFront

type CategoryFront struct {
	Uuid         uuid.UUID    `json:"uuid"`
	Code         string       `json:"code"`
	Name         string       `json:"name"`
	Description  string       `json:"description"`
	SortOrder    int64        `json:"sort_order" db:"sort_order"`
	Image        pgtype.JSONB `json:"image"`
	AncestorUuid uuid.UUID    `json:"ancestor_uuid" db:"ancestor_uuid"`
	AncestorName string       `json:"ancestor_name" db:"ancestor_name"`
}
type MenuCategory struct {
	Uuid string `json:"tp_uuid"`
}
type MenuProduct struct {
	Uuid  string            `json:"tp_uuid"`
	Items []MenuProductItem `json:"tp_item"`
}
type MenuProductItem struct {
	Foreign string `json:"tp_foreign"`
}

type Order

type Order struct {
	Uuid         uuid.UUID    `json:"uuid"`
	Number       int64        `json:"number"`
	BuyerUuid    uuid.UUID    `json:"buyer_uuid" db:"buyer_uuid"`
	AncestorUuid uuid.UUID    `json:"ancestor_uuid" db:"ancestor_uuid"`
	Status       int64        `json:"status"`
	Payment      int64        `json:"payment"`
	Delivery     int64        `json:"delivery"`
	Items        pgtype.JSONB `json:"items"`
	Address      pgtype.JSONB `json:"address"`
	ExecuteAt    pgtype.Date  `json:"execute_at" db:"execute_at"`
	Description  pgtype.JSONB `json:"description"`
	SortOrder    int64        `json:"sort_order" db:"sort_order"`
	CreatedAt    pgtype.Date  `json:"created_at" db:"created_at"`
	UpdatedAt    pgtype.Date  `json:"updated_at" db:"updated_at"`
	DeletedAt    pgtype.Date  `json:"deleted_at" db:"deleted_at"`
}

type OrderStat

type OrderStat struct {
	UpdatedAt pgtype.Date `json:"updated_at" db:"updated_at"`
	Status    int64       `json:"status"`
	Payment   int64       `json:"payment"`
	Delivery  int64       `json:"delivery"`
}

type ProductAdmin

type ProductAdmin struct {
	Uuid         uuid.UUID    `json:"uuid"`
	Code         string       `json:"code"`
	Name         pgtype.JSONB `json:"name"`
	Description  pgtype.JSONB `json:"description"`
	SortOrder    int64        `json:"sort_order" db:"sort_order"`
	Image        pgtype.JSONB `json:"image"`
	CategoryUuid uuid.UUID    `json:"category_uuid" db:"category_uuid"`
	Items        pgtype.JSONB `json:"items"`
	IsActive     bool         `json:"is_active" db:"is_active"`
	CreatedAt    pgtype.Date  `json:"created_at" db:"created_at"`
	UpdatedAt    pgtype.Date  `json:"updated_at" db:"updated_at"`
	DeletedAt    pgtype.Date  `json:"deleted_at" db:"deleted_at"`
}

type ProductFront

type ProductFront struct {
	Uuid         uuid.UUID    `json:"uuid"`
	Code         string       `json:"code"`
	Name         string       `json:"name"`
	Description  string       `json:"description"`
	SortOrder    int64        `json:"sort_order" db:"sort_order"`
	Image        pgtype.JSONB `json:"image"`
	CategoryUuid uuid.UUID    `json:"category_uuid" db:"category_uuid"`
	CategoryName string       `json:"category_name" db:"category_name"`
	Items        pgtype.JSONB `json:"items"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL