schema

package
v0.0.0-...-e97b45c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 18 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).

Types

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 FinancialTransaction

type FinancialTransaction struct {
	ent.Schema
}

FinancialTransaction holds the schema definition for the FinancialTransaction entity.

func (FinancialTransaction) Annotations

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

Annotations of the FinancialTransaction.

func (FinancialTransaction) Edges

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

Edges of the FinancialTransaction.

func (FinancialTransaction) Fields

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

Fields of the FinancialTransaction.

func (FinancialTransaction) Mixin

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

Mixin of the FinancialTransaction.

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 InvoiceLineItem

type InvoiceLineItem struct {
	ent.Schema
}

InvoiceLineItem holds the schema definition for the InvoiceLineItem entity.

func (InvoiceLineItem) Annotations

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

Annotations of the InvoiceLineItem.

func (InvoiceLineItem) Edges

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

Edges of the InvoiceLineItem.

func (InvoiceLineItem) Fields

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

Fields of the InvoiceLineItem.

func (InvoiceLineItem) Indexes

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

Indexes of the InvoiceLineItem.

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 OrderLineItem

type OrderLineItem struct {
	ent.Schema
}

OrderLineItem holds the schema definition for the OrderLineItem entity.

func (OrderLineItem) Annotations

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

Annotations of the OrderLineItem.

func (OrderLineItem) Edges

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

Edges of the OrderLineItem.

func (OrderLineItem) Fields

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

Fields of the OrderLineItem.

func (OrderLineItem) Indexes

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

Indexes of the OrderLineItem.

func (OrderLineItem) Mixin

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

Mixin of the OrderLineItem.

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 Product

type Product struct {
	ent.Schema
}

Product holds the schema definition for the Product entity.

func (Product) Edges

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

Edges of the Product.

func (Product) Fields

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

Fields of the Product.

func (Product) Hooks

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

Hooks of the Product.

func (Product) Mixin

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

Mixin of the Product.

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 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 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

Jump to

Keyboard shortcuts

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