schema

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const UsePublicApiValue = "1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	ent.Schema
	hooks.AuditLog
}

Address holds the schema definition for the Address entity.

func (Address) Annotations

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

func (Address) Edges

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

Edges of the Address.

func (Address) Fields

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

Fields of an Address.

func (Address) Hooks

func (a Address) Hooks() []ent.Hook

func (Address) Mixin

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

Mixin Time mixin for the Addresses

type AuditLog

type AuditLog struct {
	ent.Schema
}

func (AuditLog) Annotations added in v0.0.7

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

func (AuditLog) Fields

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

Fields of the Business.

func (AuditLog) Indexes

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

func (AuditLog) Policy added in v0.0.7

func (AuditLog) Policy() ent.Policy

type Business

type Business struct {
	ent.Schema
	hooks.AuditLog
}

Business holds the schema definition for the Business entity.

func (Business) Annotations

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

func (Business) Edges

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

Edges of the Business.

func (Business) Fields

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

Fields of the Business.

func (Business) Hooks

func (b Business) Hooks() []ent.Hook

func (Business) Indexes

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

func (Business) Mixin

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

Mixin Time for the business

func (Business) Policy

func (Business) Policy() ent.Policy

Policy defines the privacy policy of the User.

type Content

type Content struct {
	ent.Schema
	hooks.AuditLog
}

Content holds the schema definition for the Content entity.

func (Content) Edges

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

Edges of the Content.

func (Content) Fields

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

Fields of the Content.

func (Content) Hooks

func (c Content) Hooks() []ent.Hook

func (Content) Indexes

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

func (Content) Mixin

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

Mixin Time mixin for the Content

type Operator

type Operator struct {
	ent.Schema
}

Operator holds the schema definition for the Operator entity. These users were derived from the users if the flag public_api is set to 1 There is no connection to the Users table, because of the public api See hooks.UpdatePublicUser()

func (Operator) Edges

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

func (Operator) Fields

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

Fields of a User.

func (Operator) Policy

func (Operator) Policy() ent.Policy

type PublicApiMixin

type PublicApiMixin struct {
	mixin.Schema
}

func (PublicApiMixin) Fields

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

func (PublicApiMixin) Indexes

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

type Tag

type Tag struct {
	ent.Schema
}

Tag holds the schema definition for the Tag entity.

func (Tag) Edges

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

Edges of a Tag.

func (Tag) Fields

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

Fields of the Tag.

func (Tag) Mixin

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

Mixin Time mixin for the Tags

type TimeMixin

type TimeMixin struct {
	// We embed the `mixin.Schema` to avoid
	// implementing the rest of the methods.
	mixin.Schema
}

TimeMixin implements the ent.Mixin for sharing time fields with package schemas.

func (TimeMixin) Fields

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

type Timetable

type Timetable struct {
	ent.Schema
	hooks.AuditLog
}

Timetable holds the schema definition for a Timetable entity.

func (Timetable) Annotations

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

func (Timetable) Edges

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

Edges of a Timetable.

func (Timetable) Fields

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

Fields of a Timetable.

func (Timetable) Hooks

func (t Timetable) Hooks() []ent.Hook

func (Timetable) Indexes

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

func (Timetable) Mixin

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

Mixin Time mixin for a Timetable

type TimetableTypeMixin

type TimetableTypeMixin struct {
	mixin.Schema
}

func (TimetableTypeMixin) Fields

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

type User

type User struct {
	ent.Schema
	hooks.AuditLog
}

User holds the schema definition for the User entity.

func (User) Annotations added in v0.0.7

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

func (User) Edges

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

func (User) Fields

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

Fields of a User.

func (User) Hooks

func (u User) Hooks() []ent.Hook

func (User) Indexes

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

func (User) Mixin

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

func (User) Policy

func (User) Policy() ent.Policy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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