schema

package
v0.0.0-...-f8ed25c Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseMixin

type BaseMixin struct {
	mixin.Schema
}

BaseMixin for all schemas in the graph.

func (BaseMixin) Policy

func (BaseMixin) Policy() ent.Policy

Policy defines the privacy policy of the BaseMixin.

type Group

type Group struct {
	ent.Schema
}

User holds the schema definition for the Group entity.

func (Group) Annotations

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

Annotations returns plan category annotations.

func (Group) Edges

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

Edges of the Group.

func (Group) Fields

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

Fields of the User.

func (Group) Mixin

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

Mixin of the User schema.

func (Group) Policy

func (Group) Policy() ent.Policy

Policy defines the privacy policy of the Group.

type Tenant

type Tenant struct {
	ent.Schema
}

Tenant holds the schema definition for the Tenant entity.

func (Tenant) Fields

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

Fields of the Tenant.

func (Tenant) Mixin

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

Mixin of the Tenant schema.

func (Tenant) Policy

func (Tenant) Policy() ent.Policy

Policy defines the privacy policy of the User.

type TenantMixin

type TenantMixin struct {
	mixin.Schema
}

TenantMixin for embedding the tenant info in different schemas.

func (TenantMixin) Edges

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

Edges for all schemas that embed TenantMixin.

func (TenantMixin) Policy

func (TenantMixin) Policy() ent.Policy

Policy for all schemas that embed TenantMixin.

Jump to

Keyboard shortcuts

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