schema

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package schema contains the ent schema definitions for the tenant API.

Index

Constants

View Source
const (
	// ApplicationPrefix is the prefix for all application IDs owned by tenant-api
	ApplicationPrefix string = "tnnt"
	// TenantPrefix is the prefix for tenants
	TenantPrefix string = ApplicationPrefix + "ten"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Tenant

type Tenant struct {
	ent.Schema
}

Tenant holds the schema definition for the Tenant entity.

func (Tenant) Annotations

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

Annotations for the Tenant

func (Tenant) Edges

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

Edges of the Tenant

func (Tenant) Fields

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

Fields of the Tenant.

func (Tenant) Indexes

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

Indexes of the Tenant

func (Tenant) Mixin

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

Mixin of the Tenant

Jump to

Keyboard shortcuts

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