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.

func (BaseMixin) Policy

func (BaseMixin) Policy() ent.Policy

Shared policy for all schemas.

type Task

type Task struct {
	ent.Schema
}

Task defines the schema of a task.

func (Task) Edges

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

Edges of the task.

func (Task) Fields

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

Fields of the task.

func (Task) Hooks

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

Hooks for the task.

func (Task) Mixin

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

Mixin list of schemas to the task.

func (Task) Policy

func (Task) Policy() ent.Policy

Policy of the task.

type Team

type Team struct {
	ent.Schema
}

Team defines the schema of a team.

func (Team) Edges

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

Edges of the team.

func (Team) Fields

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

Fields of the team.

func (Team) Mixin

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

Mixin list of schemas to the team.

func (Team) Policy

func (Team) Policy() ent.Policy

Policy of the team.

type TeamMixin

type TeamMixin struct {
	mixin.Schema
}

TeamMixin shared between task and user.

func (TeamMixin) Edges

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

Edges of the team-mixin.

func (TeamMixin) Policy

func (TeamMixin) Policy() ent.Policy

Policy of the team-mixin.

type User

type User struct {
	ent.Schema
}

User defines the schema of a user.

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 list of schemas to the user.

func (User) Policy

func (User) Policy() ent.Policy

Policy of the user.