schema

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2020 License: Apache-2.0 Imports: 6 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) 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.

type User

type User struct {
	ent.Schema
}

User holds the schema definition for the User entity.

func (User) Edges

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

Edges of the User.

func (User) Fields

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

Fields of the User.

func (User) Mixin

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

Mixin of the User schema.

func (User) Policy

func (User) Policy() ent.Policy

Policy defines the privacy policy of the User.

Jump to

Keyboard shortcuts

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