schema

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package schema - the forms module's ent schema, apart from the core's. A form is a core node and a submission's author a core user: Node and User are the module's stand-ins for their tables (migrations.Sets).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	ent.Schema
}

Node - the core's nodes: a form's (ON DELETE CASCADE).

func (Node) Annotations

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

Annotations of the Node.

func (Node) Fields

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

Fields of the Node.

type User

type User struct {
	ent.Schema
}

User - the core's users: a submission's author (ON DELETE SET NULL).

func (User) Annotations

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

Annotations of the User.

func (User) Fields

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

Fields of the User.

type Webform

type Webform struct {
	ent.Schema
}

Webform - the forms module's form: a node of type "form" (its title, address, SEO) with its own elements and submissions. Its elements are rows, not fields of a content type: each form has its own.

func (Webform) Annotations

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

Annotations of the Webform.

func (Webform) Edges

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

Edges of the Webform.

func (Webform) Fields

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

Fields of the Webform.

func (Webform) Indexes

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

Indexes of the Webform.

type WebformElement

type WebformElement struct {
	ent.Schema
}

WebformElement - one element (question) of a form.

func (WebformElement) Annotations

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

Annotations of the WebformElement.

func (WebformElement) Edges

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

Edges of the WebformElement.

func (WebformElement) Fields

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

Fields of the WebformElement.

func (WebformElement) Indexes

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

Indexes of the WebformElement.

type WebformSubmission

type WebformSubmission struct {
	ent.Schema
}

WebformSubmission - one sent form.

func (WebformSubmission) Annotations

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

Annotations of the WebformSubmission.

func (WebformSubmission) Edges

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

Edges of the WebformSubmission.

func (WebformSubmission) Fields

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

Fields of the WebformSubmission.

func (WebformSubmission) Indexes

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

Indexes of the WebformSubmission.

type WebformSubmissionValue

type WebformSubmissionValue struct {
	ent.Schema
}

WebformSubmissionValue - an element's value in a submission; a checkboxes element has a row per checked choice (delta).

func (WebformSubmissionValue) Annotations

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

Annotations of the WebformSubmissionValue.

func (WebformSubmissionValue) Edges

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

Edges of the WebformSubmissionValue.

func (WebformSubmissionValue) Fields

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

Fields of the WebformSubmissionValue.

func (WebformSubmissionValue) Indexes

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

Indexes of the WebformSubmissionValue.

Jump to

Keyboard shortcuts

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