schema

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

This file is intentionally left empty. All schema definitions are in schema.go This file exists to prevent Go build errors when ent generates code.

PLUGIN: tenant

PLUGIN: ou

PLUGIN: ou

PLUGIN: tenant

PLUGIN: tenant

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIPermission

type APIPermission struct {
	ent.Schema
}

APIPermission API权限实体

func (APIPermission) Edges

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

func (APIPermission) Fields

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

func (APIPermission) Indexes

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

func (APIPermission) Mixin

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

Mixin for APIPermission entity

type APIPermissionMap

type APIPermissionMap struct {
	ent.Schema
}

APIPermissionMap maps API metadata to permission codes.

func (APIPermissionMap) Fields

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

func (APIPermissionMap) Indexes

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

func (APIPermissionMap) Mixin

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

type ApiKey

type ApiKey struct {
	ent.Schema
}

ApiKey API密钥实体

func (ApiKey) Edges

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

func (ApiKey) Fields

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

func (ApiKey) Indexes

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

func (ApiKey) Mixin

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

Mixin for ApiKey entity

type AuditLog

type AuditLog struct {
	ent.Schema
}

AuditLog 审计日志实体

func (AuditLog) Edges

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

func (AuditLog) Fields

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

func (AuditLog) Indexes

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

func (AuditLog) Mixin

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

Mixin for AuditLog entity

type Dictionary

type Dictionary struct {
	ent.Schema
}

Dictionary holds the schema definition for the Dictionary entity.

func (Dictionary) Edges

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

Edges of the Dictionary.

func (Dictionary) Fields

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

Fields of the Dictionary.

func (Dictionary) Indexes

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

Indexes of the Dictionary.

func (Dictionary) Mixin

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

Mixin of the Dictionary.

type DictionaryDetail

type DictionaryDetail struct {
	ent.Schema
}

DictionaryDetail holds the schema definition for the DictionaryDetail entity.

func (DictionaryDetail) Edges

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

Edges of the DictionaryDetail.

func (DictionaryDetail) Fields

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

Fields of the DictionaryDetail.

func (DictionaryDetail) Mixin

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

Mixin of the DictionaryDetail.

type Domain

type Domain struct {
	ent.Schema
}

Domain represents a single domain instance (e.g. platform:root, tenant:<uuid>).

func (Domain) Edges

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

func (Domain) Fields

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

func (Domain) Indexes

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

func (Domain) Mixin

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

type DomainMembership

type DomainMembership struct {
	ent.Schema
}

DomainMembership links a subject (user/service_account) to a domain.

func (DomainMembership) Edges

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

func (DomainMembership) Fields

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

func (DomainMembership) Indexes

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

func (DomainMembership) Mixin

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

type DomainRelation

type DomainRelation struct {
	ent.Schema
}

DomainRelation defines hierarchical relationships between domains.

func (DomainRelation) Fields

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

func (DomainRelation) Indexes

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

func (DomainRelation) Mixin

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

type DomainType

type DomainType struct {
	ent.Schema
}

DomainType defines a type of domain (e.g. platform, tenant, workspace).

func (DomainType) Edges

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

func (DomainType) Fields

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

func (DomainType) Indexes

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

func (DomainType) Mixin

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

type InvitationToken

type InvitationToken struct {
	ent.Schema
}

InvitationToken 邀请令牌实体

func (InvitationToken) Edges

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

Edges of the InvitationToken

func (InvitationToken) Fields

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

Fields of the InvitationToken

func (InvitationToken) Indexes

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

Indexes of the InvitationToken

func (InvitationToken) Mixin

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

Mixin for InvitationToken entity

type Media

type Media struct {
	ent.Schema
}

Media 媒体实体

func (Media) Edges

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

Edges 定义 Media 的边 (本地扩展)

func (Media) Fields

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

Fields 显式定义 ID 以确保 Ent 识别为 UUID

func (Media) Indexes

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

func (Media) Mixin

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

Mixin 混入 framework 的 Media 定义

type MediaFolder

type MediaFolder struct {
	ent.Schema
}

MediaFolder 媒体目录实体

func (MediaFolder) Edges

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

func (MediaFolder) Fields

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

func (MediaFolder) Indexes

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

func (MediaFolder) Mixin

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

Mixin 混入基础租户字段

type MediaFormat

type MediaFormat struct {
	ent.Schema
}

MediaFormat 媒体格式实体

func (MediaFormat) Fields

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

Fields 显式定义 ID 以确保 Ent 识别为 UUID

func (MediaFormat) Mixin

func (MediaFormat) Mixin() []ent.Mixin
type Menu struct {
	ent.Schema
}

Menu holds the schema definition for the Menu entity.

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

Edges of the Menu.

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

Fields of the Menu.

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

Mixin of the Menu.

type OperationLog

type OperationLog struct {
	ent.Schema
}

OperationLog 操作日志实体

func (OperationLog) Edges

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

Edges 关联定义

func (OperationLog) Fields

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

Fields 字段定义

func (OperationLog) Indexes

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

Indexes 索引定义

func (OperationLog) Mixin

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

type Organization

type Organization struct {
	ent.Schema
}

Organization represents an OU node inside a domain.

func (Organization) Edges

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

func (Organization) Fields

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

func (Organization) Indexes

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

func (Organization) Mixin

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

type OrganizationMember

type OrganizationMember struct {
	ent.Schema
}

OrganizationMember represents a user assignment in an organization.

func (OrganizationMember) Edges

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

func (OrganizationMember) Fields

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

func (OrganizationMember) Indexes

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

func (OrganizationMember) Mixin

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

type PasswordResetToken

type PasswordResetToken struct {
	ent.Schema
}

PasswordResetToken stores one-time JWT reset links.

func (PasswordResetToken) Edges

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

func (PasswordResetToken) Fields

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

func (PasswordResetToken) Indexes

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

func (PasswordResetToken) Mixin

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

type Permission

type Permission struct {
	ent.Schema
}

Permission 权限实体(用于细粒度控制)

func (Permission) Edges

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

func (Permission) Fields

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

func (Permission) Indexes

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

func (Permission) Mixin

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

type Post

type Post struct {
	ent.Schema
}

Post 文章实体

func (Post) Edges

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

func (Post) Fields

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

func (Post) Indexes

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

func (Post) Mixin

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

Mixin for Post entity

type ResourceDomainBinding

type ResourceDomainBinding struct {
	ent.Schema
}

ResourceDomainBinding binds a resource to a domain with an access level.

func (ResourceDomainBinding) Edges

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

func (ResourceDomainBinding) Fields

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

func (ResourceDomainBinding) Indexes

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

func (ResourceDomainBinding) Mixin

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

type Role

type Role struct {
	ent.Schema
}

Role 角色实体

func (Role) Edges

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

func (Role) Fields

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

func (Role) Indexes

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

func (Role) Mixin

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

Mixin for Role entity

type RoleBinding

type RoleBinding struct {
	ent.Schema
}

RoleBinding maps subjects to role scopes.

func (RoleBinding) Fields

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

func (RoleBinding) Indexes

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

func (RoleBinding) Mixin

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

type Session

type Session struct {
	ent.Schema
}

Session 会话实体(用于JWT管理)

func (Session) Edges

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

func (Session) Fields

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

func (Session) Indexes

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

func (Session) Mixin

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

Mixin for Session entity

type SystemConfig

type SystemConfig struct {
	ent.Schema
}

SystemConfig 系统配置实体

func (SystemConfig) Fields

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

func (SystemConfig) Indexes

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

func (SystemConfig) Mixin

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

Mixin for SystemConfig entity

type SystemError

type SystemError struct {
	ent.Schema
}

SystemError 系统错误日志实体

func (SystemError) Edges

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

func (SystemError) Fields

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

func (SystemError) Indexes

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

func (SystemError) Mixin

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

type Tenant

type Tenant struct {
	ent.Schema
}

Tenant 租户实体

func (Tenant) Edges

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

func (Tenant) Fields

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

func (Tenant) Indexes

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

func (Tenant) Mixin

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

Mixin for Tenant entity

type TenantUser

type TenantUser struct {
	ent.Schema
}

TenantUser represents a user membership in a tenant.

func (TenantUser) Edges

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

func (TenantUser) Fields

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

func (TenantUser) Indexes

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

func (TenantUser) Mixin

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

type User

type User struct {
	ent.Schema
}

User 用户实体

func (User) Edges

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

func (User) Fields

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

func (User) Indexes

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

func (User) Mixin

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

Mixin for User entity

Jump to

Keyboard shortcuts

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