schema

package
v0.0.0-...-f60b9ba Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentifierMixin

type IdentifierMixin struct {
	mixin.Schema
}

func (IdentifierMixin) Fields

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

type Organization

type Organization struct {
	ent.Schema
}

func (Organization) Annotations

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

func (Organization) Fields

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

func (Organization) Indexes

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

func (Organization) Mixin

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

type OrganizationParent

type OrganizationParent struct {
	ent.Schema
}

TODO: give constraints and indexes more sane names

func (OrganizationParent) Annotations

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

func (OrganizationParent) Fields

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

func (OrganizationParent) Indexes

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

Note: cannot model M2M with duplicate entries in entgo see https://github.com/ent/ent/issues/2964 see migration file for additional checks

func (OrganizationParent) Mixin

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

type OrganizationPerson

type OrganizationPerson struct {
	ent.Schema
}

func (OrganizationPerson) Annotations

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

func (OrganizationPerson) Fields

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

func (OrganizationPerson) Indexes

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

Note: cannot model M2M with duplicate entries in entgo see https://github.com/ent/ent/issues/2964 see migration file for additional checks

func (OrganizationPerson) Mixin

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

type Person

type Person struct {
	ent.Schema
}

Person holds the schema definition for the Person entity.

func (Person) Annotations

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

func (Person) Fields

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

Fields of the Person.

func (Person) Indexes

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

func (Person) Mixin

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

type PublicIdMixin

type PublicIdMixin struct {
	mixin.Schema
}

func (PublicIdMixin) Fields

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

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