schema

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 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 added in v0.5.0

type BaseMixin struct {
	mixin.Schema
}

BaseMixin for all schemas.

func (BaseMixin) Policy added in v0.5.0

func (BaseMixin) Policy() ent.Policy

Shared policy for all schemas.

type Task added in v0.5.0

type Task struct {
	ent.Schema
}

Task defines the schema of a task.

func (Task) Edges added in v0.5.0

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

Edges of the task.

func (Task) Fields added in v0.5.0

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

Fields of the task.

func (Task) Hooks added in v0.5.0

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

Hooks for the task.

func (Task) Mixin added in v0.5.0

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

Mixin list of schemas to the task.

func (Task) Policy added in v0.5.0

func (Task) Policy() ent.Policy

Policy of the task.

type Team added in v0.5.0

type Team struct {
	ent.Schema
}

Team defines the schema of a team.

func (Team) Edges added in v0.5.0

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

Edges of the team.

func (Team) Fields added in v0.5.0

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

Fields of the team.

func (Team) Mixin added in v0.5.0

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

Mixin list of schemas to the team.

func (Team) Policy added in v0.5.0

func (Team) Policy() ent.Policy

Policy of the team.

type TeamMixin added in v0.5.0

type TeamMixin struct {
	mixin.Schema
}

TeamMixin shared between task and user.

func (TeamMixin) Edges added in v0.5.0

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

Edges of the team-mixin.

func (TeamMixin) Policy added in v0.5.0

func (TeamMixin) Policy() ent.Policy

Policy of the team-mixin.

type User added in v0.5.0

type User struct {
	ent.Schema
}

User defines the schema of a user.

func (User) Edges added in v0.5.0

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

Edges of the user.

func (User) Fields added in v0.5.0

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

Fields of the user.

func (User) Mixin added in v0.5.0

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

Mixin list of schemas to the user.

func (User) Policy added in v0.5.0

func (User) Policy() ent.Policy

Policy of the user.

Jump to

Keyboard shortcuts

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