datamodel

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 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 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 added in v0.8.0

type BuyerAdmin struct {
	Uuid        uuid.UUID      `json:"uuid"`
	Phone       string         `json:"phone"`
	Name        pgtype.Varchar `json:"name"`
	Email       pgtype.Varchar `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 added in v0.8.0

type BuyerFront struct {
	Uuid        uuid.UUID      `json:"uuid"`
	Phone       string         `json:"phone"`
	Name        pgtype.Varchar `json:"name"`
	Email       pgtype.Varchar `json:"email"`
	Description pgtype.JSONB   `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"`
	Attribute   pgtype.JSONB `json:"attribute"`
	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"`
	Attribute   pgtype.JSONB `json:"attribute"`
}

type Order added in v0.9.0

type Order struct {
	Uuid        uuid.UUID    `json:"uuid"`
	Buyer       uuid.UUID    `json:"buyer"`
	Delivery    int64        `json:"delivery"`
	Payment     int64        `json:"payment"`
	Items       pgtype.JSONB `json:"items"`
	Address     pgtype.JSONB `json:"address"`
	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 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"`
	CategoryUuid uuid.UUID    `json:"category_uuid" db:"category_uuid"`
	IsActive     bool         `json:"is_active" db:"is_active"`
	Items        pgtype.JSONB `json:"items"`
	Image        pgtype.JSONB `json:"image"`
	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"`
	CategoryUuid uuid.UUID    `json:"category_uuid" db:"category_uuid"`
	Items        pgtype.JSONB `json:"items"`
	Image        pgtype.JSONB `json:"image"`
}

Jump to

Keyboard shortcuts

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