Versions in this module Expand all Collapse all v0 v0.4.1 Jul 25, 2026 Changes in this version type Credentials + func (Credentials) Indexes() []ent.Index v0.4.0 Jul 8, 2026 Changes in this version + const CodeAutoLen + const CodeMaxLen + const CodeMinLen + const MenuCodeAutoLen + var ReservedMenuCodes = map[string]bool + var URLRegex = regexp.MustCompile(`^(https?://)?([\da-z\.-]+)\.([a-z\.]{2,6})([/\w \.-]*)*/?$`) + func EnsureCode(code string) (string, error) + func FieldNameNormalize(name string) string + func GenerateCode() (string, error) + func GenerateCodeWithLen(length int) (string, error) + func GenerateMenuCode(parentCode string) (string, error) + func IsReservedCode(code string) bool + func ValidateCode(code string) error + type AuditMixin struct + func (AuditMixin) Fields() []ent.Field + type AuthProviders struct + func (AuthProviders) Annotations() []schema.Annotation + func (AuthProviders) Edges() []ent.Edge + func (AuthProviders) Fields() []ent.Field + func (AuthProviders) Indexes() []ent.Index + func (AuthProviders) Mixin() []ent.Mixin + type Credentials struct + func (Credentials) Annotations() []schema.Annotation + func (Credentials) Edges() []ent.Edge + func (Credentials) Fields() []ent.Field + func (Credentials) Mixin() []ent.Mixin + type Departments struct + func (Departments) Annotations() []schema.Annotation + func (Departments) Edges() []ent.Edge + func (Departments) Fields() []ent.Field + func (Departments) Mixin() []ent.Mixin + type GlobalSettings struct + func (GlobalSettings) Annotations() []schema.Annotation + func (GlobalSettings) Fields() []ent.Field + func (GlobalSettings) Indexes() []ent.Index + func (GlobalSettings) Mixin() []ent.Mixin + type Groups struct + func (Groups) Annotations() []schema.Annotation + func (Groups) Edges() []ent.Edge + func (Groups) Fields() []ent.Field + func (Groups) Indexes() []ent.Index + func (Groups) Mixin() []ent.Mixin + type Menus struct + func (Menus) Annotations() []schema.Annotation + func (Menus) Edges() []ent.Edge + func (Menus) Fields() []ent.Field + func (Menus) Indexes() []ent.Index + func (Menus) Mixin() []ent.Mixin + type OAuth2Clients struct + func (OAuth2Clients) Annotations() []schema.Annotation + func (OAuth2Clients) Edges() []ent.Edge + func (OAuth2Clients) Fields() []ent.Field + func (OAuth2Clients) Indexes() []ent.Index + func (OAuth2Clients) Mixin() []ent.Mixin + type OAuth2Codes struct + func (OAuth2Codes) Annotations() []schema.Annotation + func (OAuth2Codes) Edges() []ent.Edge + func (OAuth2Codes) Fields() []ent.Field + func (OAuth2Codes) Indexes() []ent.Index + func (OAuth2Codes) Mixin() []ent.Mixin + type Policies struct + func (Policies) Annotations() []schema.Annotation + func (Policies) Edges() []ent.Edge + func (Policies) Fields() []ent.Field + func (Policies) Indexes() []ent.Index + func (Policies) Mixin() []ent.Mixin + type PrincipalRoles struct + func (PrincipalRoles) Annotations() []schema.Annotation + func (PrincipalRoles) Edges() []ent.Edge + func (PrincipalRoles) Fields() []ent.Field + func (PrincipalRoles) Indexes() []ent.Index + func (PrincipalRoles) Mixin() []ent.Mixin + type RoleMenus struct + func (RoleMenus) Annotations() []schema.Annotation + func (RoleMenus) Edges() []ent.Edge + func (RoleMenus) Fields() []ent.Field + func (RoleMenus) Indexes() []ent.Index + func (RoleMenus) Mixin() []ent.Mixin + type RolePolicies struct + func (RolePolicies) Annotations() []schema.Annotation + func (RolePolicies) Edges() []ent.Edge + func (RolePolicies) Fields() []ent.Field + func (RolePolicies) Indexes() []ent.Index + func (RolePolicies) Mixin() []ent.Mixin + type Roles struct + func (Roles) Annotations() []schema.Annotation + func (Roles) Edges() []ent.Edge + func (Roles) Fields() []ent.Field + func (Roles) Indexes() []ent.Index + func (Roles) Mixin() []ent.Mixin + type TimeMixin struct + func (TimeMixin) Fields() []ent.Field + type TimeMixinWithoutDeleted struct + func (TimeMixinWithoutDeleted) Fields() []ent.Field + type UserIdentities struct + func (UserIdentities) Annotations() []schema.Annotation + func (UserIdentities) Edges() []ent.Edge + func (UserIdentities) Fields() []ent.Field + func (UserIdentities) Indexes() []ent.Index + func (UserIdentities) Mixin() []ent.Mixin + type UserMemberships struct + func (UserMemberships) Annotations() []schema.Annotation + func (UserMemberships) Edges() []ent.Edge + func (UserMemberships) Fields() []ent.Field + func (UserMemberships) Indexes() []ent.Index + func (UserMemberships) Mixin() []ent.Mixin + type UserProfiles struct + func (UserProfiles) Annotations() []schema.Annotation + func (UserProfiles) Edges() []ent.Edge + func (UserProfiles) Fields() []ent.Field + func (UserProfiles) Indexes() []ent.Index + func (UserProfiles) Mixin() []ent.Mixin + type Users struct + func (Users) Annotations() []schema.Annotation + func (Users) Edges() []ent.Edge + func (Users) Fields() []ent.Field + func (Users) Indexes() []ent.Index + func (Users) Mixin() []ent.Mixin v0.3.9-beta.1 Nov 17, 2025