schema

package
v0.0.0-...-05e3429 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NanoIDHook

func NanoIDHook(l ...int) ent.Hook

NanoIDHook is a hook that generates a random ID for the entity. Only applies to ID fields that are strings. l is the length of the generated ID (optional, default is 21).

func ULIDHook

func ULIDHook() ent.Hook

ULIDHook is a hook that generates a ULID for the entity. Length of the generated ID is always 26.

Types

type Address

type Address struct {
	ent.Schema
}

Address holds the schema definition for the Address entity.

func (Address) Edges

func (Address) Edges() []ent.Edge

Edges of the Address.

func (Address) Fields

func (Address) Fields() []ent.Field

Fields of the Address.

func (Address) Mixin

func (Address) Mixin() []ent.Mixin

Mixin of the Address.

type Conversation

type Conversation struct {
	ent.Schema
}

Conversation holds the schema definition for the Conversation entity.

func (Conversation) Edges

func (Conversation) Edges() []ent.Edge

Edges of the Conversation.

func (Conversation) Fields

func (Conversation) Fields() []ent.Field

Fields of the Conversation.

func (Conversation) Indexes

func (Conversation) Indexes() []ent.Index

Indexes of the Conversation.

func (Conversation) Mixin

func (Conversation) Mixin() []ent.Mixin

Mixin of the Conversation.

type CreationTimeMixin

type CreationTimeMixin struct {
	mixin.Schema
}

func (CreationTimeMixin) Fields

func (CreationTimeMixin) Fields() []ent.Field

type Invoice

type Invoice struct {
	ent.Schema
}

Invoice holds the schema definition for the Invoice entity.

func (Invoice) Edges

func (Invoice) Edges() []ent.Edge

Edges of the Invoice.

func (Invoice) Fields

func (Invoice) Fields() []ent.Field

Fields of the Invoice.

func (Invoice) Mixin

func (Invoice) Mixin() []ent.Mixin

Mixin of the Invoice.

type InvoiceHistory

type InvoiceHistory struct {
	ent.Schema
}

InvoiceHistory holds the schema definition for the InvoiceHistory entity.

func (InvoiceHistory) Annotations

func (InvoiceHistory) Annotations() []schema.Annotation

Annotations of the InvoiceHistory.

func (InvoiceHistory) Edges

func (InvoiceHistory) Edges() []ent.Edge

Edges of the InvoiceHistory.

func (InvoiceHistory) Fields

func (InvoiceHistory) Fields() []ent.Field

Fields of the InvoiceHistory.

func (InvoiceHistory) Mixin

func (InvoiceHistory) Mixin() []ent.Mixin

Mixin of the InvoiceHistory.

type InvoiceStatusCode

type InvoiceStatusCode struct {
	ent.Schema
}

InvoiceStatusCode holds the schema definition for the InvoiceStatusCode entity.

func (InvoiceStatusCode) Annotations

func (InvoiceStatusCode) Annotations() []schema.Annotation

Annotations of the InvoiceStatusCode.

func (InvoiceStatusCode) Edges

func (InvoiceStatusCode) Edges() []ent.Edge

Edges of the InvoiceStatusCode.

func (InvoiceStatusCode) Fields

func (InvoiceStatusCode) Fields() []ent.Field

Fields of the InvoiceStatusCode.

func (InvoiceStatusCode) Mixin

func (InvoiceStatusCode) Mixin() []ent.Mixin

Mixin of the InvoiceStatusCode.

type Message

type Message struct {
	ent.Schema
}

Message holds the schema definition for the Message entity.

func (Message) Edges

func (Message) Edges() []ent.Edge

Edges of the Message.

func (Message) Fields

func (Message) Fields() []ent.Field

Fields of the Message.

func (Message) Mixin

func (Message) Mixin() []ent.Mixin

Mixin of the Message.

type Order

type Order struct {
	ent.Schema
}

Order holds the schema definition for the Order entity.

func (Order) Edges

func (Order) Edges() []ent.Edge

Edges of the Order.

func (Order) Fields

func (Order) Fields() []ent.Field

Fields of the Order.

func (Order) Mixin

func (Order) Mixin() []ent.Mixin

Mixin of the Order.

type OrderHistory

type OrderHistory struct {
	ent.Schema
}

OrderHistory holds the schema definition for the OrderHistory entity.

func (OrderHistory) Annotations

func (OrderHistory) Annotations() []schema.Annotation

Annotations of the OrderHistory.

func (OrderHistory) Edges

func (OrderHistory) Edges() []ent.Edge

Edges of the OrderHistory.

func (OrderHistory) Fields

func (OrderHistory) Fields() []ent.Field

Fields of the OrderHistory.

func (OrderHistory) Mixin

func (OrderHistory) Mixin() []ent.Mixin

Mixin of the OrderHistory.

type OrderItem

type OrderItem struct {
	ent.Schema
}

OrderItem holds the schema definition for the OrderItem entity.

func (OrderItem) Annotations

func (OrderItem) Annotations() []schema.Annotation

Annotations of the OrderItem.

func (OrderItem) Edges

func (OrderItem) Edges() []ent.Edge

Edges of the OrderItem.

func (OrderItem) Fields

func (OrderItem) Fields() []ent.Field

Fields of the OrderItem.

func (OrderItem) Indexes

func (OrderItem) Indexes() []ent.Index

Indexes of the OrderItem.

func (OrderItem) Mixin

func (OrderItem) Mixin() []ent.Mixin

Mixin of the OrderItem.

type OrderStatusCode

type OrderStatusCode struct {
	ent.Schema
}

OrderStatusCode holds the schema definition for the OrderStatusCode entity.

func (OrderStatusCode) Annotations

func (OrderStatusCode) Annotations() []schema.Annotation

Annotations of the OrderStatusCode.

func (OrderStatusCode) Edges

func (OrderStatusCode) Edges() []ent.Edge

Edges of the OrderStatusCode.

func (OrderStatusCode) Fields

func (OrderStatusCode) Fields() []ent.Field

Fields of the OrderStatusCode.

func (OrderStatusCode) Mixin

func (OrderStatusCode) Mixin() []ent.Mixin

Mixin of the OrderStatusCode.

type Person

type Person struct {
	ent.Schema
}

Person holds the schema definition for the Person entity.

func (Person) Edges

func (Person) Edges() []ent.Edge

Edges of the Person.

func (Person) Fields

func (Person) Fields() []ent.Field

Fields of the Person.

func (Person) Mixin

func (Person) Mixin() []ent.Mixin

Mixin of the Person.

type PersonAddress

type PersonAddress struct {
	ent.Schema
}

PersonAddress holds the schema definition for the PersonAddress entity.

func (PersonAddress) Annotations

func (PersonAddress) Annotations() []schema.Annotation

Annotations of the PersonAddress.

func (PersonAddress) Edges

func (PersonAddress) Edges() []ent.Edge

Edges of the PersonAddress.

func (PersonAddress) Fields

func (PersonAddress) Fields() []ent.Field

Fields of the PersonAddress.

func (PersonAddress) Mixin

func (PersonAddress) Mixin() []ent.Mixin

Mixin of the PersonAddress.

type ProductColor

type ProductColor struct {
	ent.Schema
}

ProductColor holds the schema definition for the ProductColor entity.

func (ProductColor) Annotations

func (ProductColor) Annotations() []schema.Annotation

Annotations of the ProductColor.

func (ProductColor) Edges

func (ProductColor) Edges() []ent.Edge

Edges of the ProductColor.

func (ProductColor) Fields

func (ProductColor) Fields() []ent.Field

Fields of the ProductColor.

func (ProductColor) Hooks

func (ProductColor) Hooks() []ent.Hook

Hooks of the ProductColor.

func (ProductColor) Mixin

func (ProductColor) Mixin() []ent.Mixin

Mixin of the ProductColor.

type ProductImage

type ProductImage struct {
	ent.Schema
}

ProductImage holds the schema definition for the ProductImage entity.

func (ProductImage) Annotations

func (ProductImage) Annotations() []schema.Annotation

Annotations of the ProductImage.

func (ProductImage) Edges

func (ProductImage) Edges() []ent.Edge

Edges of the ProductImage.

func (ProductImage) Fields

func (ProductImage) Fields() []ent.Field

Fields of the ProductImage.

func (ProductImage) Mixin

func (ProductImage) Mixin() []ent.Mixin

Mixin of the ProductImage

type ProductInfo

type ProductInfo struct {
	ent.Schema
}

ProductInfo holds the schema definition for the ProductInfo entity.

func (ProductInfo) Annotations

func (ProductInfo) Annotations() []schema.Annotation

Annotations of the ProductInfo.

func (ProductInfo) Edges

func (ProductInfo) Edges() []ent.Edge

Edges of the ProductInfo.

func (ProductInfo) Fields

func (ProductInfo) Fields() []ent.Field

Fields of the ProductInfo.

func (ProductInfo) Hooks

func (ProductInfo) Hooks() []ent.Hook

Hooks of the ProductInfo.

func (ProductInfo) Mixin

func (ProductInfo) Mixin() []ent.Mixin

Mixin of the ProductInfo.

type ProductQty

type ProductQty struct {
	ent.Schema
}

ProductQty holds the schema definition for the ProductQty entity.

func (ProductQty) Annotations

func (ProductQty) Annotations() []schema.Annotation

Annotations of the ProductQty.

func (ProductQty) Edges

func (ProductQty) Edges() []ent.Edge

Edges of the ProductQty.

func (ProductQty) Fields

func (ProductQty) Fields() []ent.Field

Fields of the ProductQty.

func (ProductQty) Indexes

func (ProductQty) Indexes() []ent.Index

Indexes of the ProductQty.

func (ProductQty) Mixin

func (ProductQty) Mixin() []ent.Mixin

Mixin of the ProductQty

type ProductTag

type ProductTag struct {
	ent.Schema
}

ProductTag holds the schema definition for the ProductTag entity.

func (ProductTag) Annotations

func (ProductTag) Annotations() []schema.Annotation

Annotations of the ProductTag.

func (ProductTag) Edges

func (ProductTag) Edges() []ent.Edge

Edges of the ProductTag.

func (ProductTag) Fields

func (ProductTag) Fields() []ent.Field

Fields of the ProductTag.

type Shipment

type Shipment struct {
	ent.Schema
}

Shipment holds the schema definition for the Shipment entity.

func (Shipment) Edges

func (Shipment) Edges() []ent.Edge

Edges of the Shipment.

func (Shipment) Fields

func (Shipment) Fields() []ent.Field

Fields of the Shipment.

func (Shipment) Mixin

func (Shipment) Mixin() []ent.Mixin

Mixin of the Shipment.

type ShipmentHistory

type ShipmentHistory struct {
	ent.Schema
}

ShipmentHistory holds the schema definition for the ShipmentHistory entity.

func (ShipmentHistory) Annotations

func (ShipmentHistory) Annotations() []schema.Annotation

Annotations of the ShipmentHistory.

func (ShipmentHistory) Edges

func (ShipmentHistory) Edges() []ent.Edge

Edges of the ShipmentHistory.

func (ShipmentHistory) Fields

func (ShipmentHistory) Fields() []ent.Field

Fields of the ShipmentHistory.

func (ShipmentHistory) Mixin

func (ShipmentHistory) Mixin() []ent.Mixin

Mixin of the ShipmentHistory.

type ShipmentItem

type ShipmentItem struct {
	ent.Schema
}

ShipmentItem holds the schema definition for the ShipmentItem entity.

func (ShipmentItem) Annotations

func (ShipmentItem) Annotations() []schema.Annotation

Annotations of the ShipmentItem.

func (ShipmentItem) Edges

func (ShipmentItem) Edges() []ent.Edge

Edges of the ShipmentItem.

func (ShipmentItem) Fields

func (ShipmentItem) Fields() []ent.Field

Fields of the ShipmentItem.

func (ShipmentItem) Indexes

func (ShipmentItem) Indexes() []ent.Index

Indexes of the ShipmentItem.

func (ShipmentItem) Mixin

func (ShipmentItem) Mixin() []ent.Mixin

Mixin of the ShipmentItem.

type ShipmentStatusCode

type ShipmentStatusCode struct {
	ent.Schema
}

ShipmentStatusCode holds the schema definition for the ShipmentStatusCode entity.

func (ShipmentStatusCode) Annotations

func (ShipmentStatusCode) Annotations() []schema.Annotation

Annotations of the ShipmentStatusCode.

func (ShipmentStatusCode) Edges

func (ShipmentStatusCode) Edges() []ent.Edge

Edges of the ShipmentStatusCode.

func (ShipmentStatusCode) Fields

func (ShipmentStatusCode) Fields() []ent.Field

Fields of the ShipmentStatusCode.

func (ShipmentStatusCode) Mixin

func (ShipmentStatusCode) Mixin() []ent.Mixin

Mixin of the ShipmentStatusCode.

type Tag

type Tag struct {
	ent.Schema
}

Tag holds the schema definition for the Tag entity.

func (Tag) Edges

func (Tag) Edges() []ent.Edge

Edges of the Tag.

func (Tag) Fields

func (Tag) Fields() []ent.Field

Fields of the Tag.

func (Tag) Hooks

func (Tag) Hooks() []ent.Hook

Hooks of the Tag.

func (Tag) Mixin

func (Tag) Mixin() []ent.Mixin

Mixin of the Tag.

type TimeMixin

type TimeMixin struct {
	mixin.Schema
}

func (TimeMixin) Fields

func (TimeMixin) Fields() []ent.Field

type ULIDMixin

type ULIDMixin struct {
	mixin.Schema
}

func (ULIDMixin) Fields

func (ULIDMixin) Fields() []ent.Field

func (ULIDMixin) Hooks

func (ULIDMixin) Hooks() []ent.Hook

type WarehouseAssignment

type WarehouseAssignment struct {
	ent.Schema
}

WarehouseAssignment holds the schema definition for the WarehouseAssignment entity.

func (WarehouseAssignment) Annotations

func (WarehouseAssignment) Annotations() []schema.Annotation

Annotations of the WarehouseAssignment.

func (WarehouseAssignment) Edges

func (WarehouseAssignment) Edges() []ent.Edge

Edges of the WarehouseAssignment.

func (WarehouseAssignment) Fields

func (WarehouseAssignment) Fields() []ent.Field

Fields of the WarehouseAssignment.

func (WarehouseAssignment) Mixin

func (WarehouseAssignment) Mixin() []ent.Mixin

Mixin of the WarehouseAssignment

type WorkUnitInfo

type WorkUnitInfo struct {
	ent.Schema
}

WorkUnitInfo holds the schema definition for the WorkUnitInfo entity.

func (WorkUnitInfo) Annotations

func (WorkUnitInfo) Annotations() []schema.Annotation

Annotations of the WorkUnitInfo.

func (WorkUnitInfo) Edges

func (WorkUnitInfo) Edges() []ent.Edge

Edges of the WorkUnitInfo.

func (WorkUnitInfo) Fields

func (WorkUnitInfo) Fields() []ent.Field

Fields of the WorkUnitInfo.

func (WorkUnitInfo) Mixin

func (WorkUnitInfo) Mixin() []ent.Mixin

Mixin of the WorkUnitInfo.

Jump to

Keyboard shortcuts

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