# Functions
Create creates all table resources using the given schema driver.
Diff compares the state read from a database connection or migration directory with the state defined by the Ent schema.
NamedDiff compares the state read from a database connection or migration directory with the state defined by the Ent schema.
NewSchema creates a new schema client.
# Variables
ActionPlanHistoryColumns holds the columns for the "action_plan_history" table.
ActionPlanHistoryTable holds the schema information for the "action_plan_history" table.
ActionPlansColumns holds the columns for the "action_plans" table.
ActionPlansTable holds the schema information for the "action_plans" table.
APITokensColumns holds the columns for the "api_tokens" table.
APITokensTable holds the schema information for the "api_tokens" table.
ContactFilesColumns holds the columns for the "contact_files" table.
ContactFilesTable holds the schema information for the "contact_files" table.
ContactHistoryColumns holds the columns for the "contact_history" table.
ContactHistoryTable holds the schema information for the "contact_history" table.
ContactsColumns holds the columns for the "contacts" table.
ContactsTable holds the schema information for the "contacts" table.
ControlActionPlansColumns holds the columns for the "control_action_plans" table.
ControlActionPlansTable holds the schema information for the "control_action_plans" table.
ControlBlockedGroupsColumns holds the columns for the "control_blocked_groups" table.
ControlBlockedGroupsTable holds the schema information for the "control_blocked_groups" table.
ControlEditorsColumns holds the columns for the "control_editors" table.
ControlEditorsTable holds the schema information for the "control_editors" table.
ControlHistoryColumns holds the columns for the "control_history" table.
ControlHistoryTable holds the schema information for the "control_history" table.
ControlNarrativesColumns holds the columns for the "control_narratives" table.
ControlNarrativesTable holds the schema information for the "control_narratives" table.
ControlObjectiveBlockedGroupsColumns holds the columns for the "control_objective_blocked_groups" table.
ControlObjectiveBlockedGroupsTable holds the schema information for the "control_objective_blocked_groups" table.
ControlObjectiveEditorsColumns holds the columns for the "control_objective_editors" table.
ControlObjectiveEditorsTable holds the schema information for the "control_objective_editors" table.
ControlObjectiveHistoryColumns holds the columns for the "control_objective_history" table.
ControlObjectiveHistoryTable holds the schema information for the "control_objective_history" table.
ControlObjectiveNarrativesColumns holds the columns for the "control_objective_narratives" table.
ControlObjectiveNarrativesTable holds the schema information for the "control_objective_narratives" table.
ControlObjectivesColumns holds the columns for the "control_objectives" table.
ControlObjectivesTable holds the schema information for the "control_objectives" table.
ControlObjectiveTasksColumns holds the columns for the "control_objective_tasks" table.
ControlObjectiveTasksTable holds the schema information for the "control_objective_tasks" table.
ControlObjectiveViewersColumns holds the columns for the "control_objective_viewers" table.
ControlObjectiveViewersTable holds the schema information for the "control_objective_viewers" table.
ControlProceduresColumns holds the columns for the "control_procedures" table.
ControlProceduresTable holds the schema information for the "control_procedures" table.
ControlRisksColumns holds the columns for the "control_risks" table.
ControlRisksTable holds the schema information for the "control_risks" table.
ControlsColumns holds the columns for the "controls" table.
ControlsTable holds the schema information for the "controls" table.
ControlSubcontrolsColumns holds the columns for the "control_subcontrols" table.
ControlSubcontrolsTable holds the schema information for the "control_subcontrols" table.
ControlTasksColumns holds the columns for the "control_tasks" table.
ControlTasksTable holds the schema information for the "control_tasks" table.
ControlViewersColumns holds the columns for the "control_viewers" table.
ControlViewersTable holds the schema information for the "control_viewers" table.
DocumentDataColumns holds the columns for the "document_data" table.
DocumentDataFilesColumns holds the columns for the "document_data_files" table.
DocumentDataFilesTable holds the schema information for the "document_data_files" table.
DocumentDataHistoryColumns holds the columns for the "document_data_history" table.
DocumentDataHistoryTable holds the schema information for the "document_data_history" table.
DocumentDataTable holds the schema information for the "document_data" table.
EmailVerificationTokensColumns holds the columns for the "email_verification_tokens" table.
EmailVerificationTokensTable holds the schema information for the "email_verification_tokens" table.
EntitiesColumns holds the columns for the "entities" table.
EntitiesTable holds the schema information for the "entities" table.
EntityContactsColumns holds the columns for the "entity_contacts" table.
EntityContactsTable holds the schema information for the "entity_contacts" table.
EntityDocumentsColumns holds the columns for the "entity_documents" table.
EntityDocumentsTable holds the schema information for the "entity_documents" table.
EntityFilesColumns holds the columns for the "entity_files" table.
EntityFilesTable holds the schema information for the "entity_files" table.
EntityHistoryColumns holds the columns for the "entity_history" table.
EntityHistoryTable holds the schema information for the "entity_history" table.
EntityTypeHistoryColumns holds the columns for the "entity_type_history" table.
EntityTypeHistoryTable holds the schema information for the "entity_type_history" table.
EntityTypesColumns holds the columns for the "entity_types" table.
EntityTypesTable holds the schema information for the "entity_types" table.
EventHistoryColumns holds the columns for the "event_history" table.
EventHistoryTable holds the schema information for the "event_history" table.
EventsColumns holds the columns for the "events" table.
EventsTable holds the schema information for the "events" table.
FileEventsColumns holds the columns for the "file_events" table.
FileEventsTable holds the schema information for the "file_events" table.
FileHistoryColumns holds the columns for the "file_history" table.
FileHistoryTable holds the schema information for the "file_history" table.
FilesColumns holds the columns for the "files" table.
FilesTable holds the schema information for the "files" table.
GroupEventsColumns holds the columns for the "group_events" table.
GroupEventsTable holds the schema information for the "group_events" table.
GroupFilesColumns holds the columns for the "group_files" table.
GroupFilesTable holds the schema information for the "group_files" table.
GroupHistoryColumns holds the columns for the "group_history" table.
GroupHistoryTable holds the schema information for the "group_history" table.
GroupMembershipEventsColumns holds the columns for the "group_membership_events" table.
GroupMembershipEventsTable holds the schema information for the "group_membership_events" table.
GroupMembershipHistoryColumns holds the columns for the "group_membership_history" table.
GroupMembershipHistoryTable holds the schema information for the "group_membership_history" table.
GroupMembershipsColumns holds the columns for the "group_memberships" table.
GroupMembershipsTable holds the schema information for the "group_memberships" table.
GroupsColumns holds the columns for the "groups" table.
GroupSettingHistoryColumns holds the columns for the "group_setting_history" table.
GroupSettingHistoryTable holds the schema information for the "group_setting_history" table.
GroupSettingsColumns holds the columns for the "group_settings" table.
GroupSettingsTable holds the schema information for the "group_settings" table.
GroupsTable holds the schema information for the "groups" table.
GroupTasksColumns holds the columns for the "group_tasks" table.
GroupTasksTable holds the schema information for the "group_tasks" table.
HushesColumns holds the columns for the "hushes" table.
HushesTable holds the schema information for the "hushes" table.
HushEventsColumns holds the columns for the "hush_events" table.
HushEventsTable holds the schema information for the "hush_events" table.
HushHistoryColumns holds the columns for the "hush_history" table.
HushHistoryTable holds the schema information for the "hush_history" table.
IntegrationEventsColumns holds the columns for the "integration_events" table.
IntegrationEventsTable holds the schema information for the "integration_events" table.
IntegrationHistoryColumns holds the columns for the "integration_history" table.
IntegrationHistoryTable holds the schema information for the "integration_history" table.
IntegrationsColumns holds the columns for the "integrations" table.
IntegrationSecretsColumns holds the columns for the "integration_secrets" table.
IntegrationSecretsTable holds the schema information for the "integration_secrets" table.
IntegrationsTable holds the schema information for the "integrations" table.
InternalPoliciesColumns holds the columns for the "internal_policies" table.
InternalPoliciesTable holds the schema information for the "internal_policies" table.
InternalPolicyBlockedGroupsColumns holds the columns for the "internal_policy_blocked_groups" table.
InternalPolicyBlockedGroupsTable holds the schema information for the "internal_policy_blocked_groups" table.
InternalPolicyControlObjectivesColumns holds the columns for the "internal_policy_control_objectives" table.
InternalPolicyControlObjectivesTable holds the schema information for the "internal_policy_control_objectives" table.
InternalPolicyEditorsColumns holds the columns for the "internal_policy_editors" table.
InternalPolicyEditorsTable holds the schema information for the "internal_policy_editors" table.
InternalPolicyHistoryColumns holds the columns for the "internal_policy_history" table.
InternalPolicyHistoryTable holds the schema information for the "internal_policy_history" table.
InternalPolicyNarrativesColumns holds the columns for the "internal_policy_narratives" table.
InternalPolicyNarrativesTable holds the schema information for the "internal_policy_narratives" table.
InternalPolicyProceduresColumns holds the columns for the "internal_policy_procedures" table.
InternalPolicyProceduresTable holds the schema information for the "internal_policy_procedures" table.
InternalPolicyTasksColumns holds the columns for the "internal_policy_tasks" table.
InternalPolicyTasksTable holds the schema information for the "internal_policy_tasks" table.
InviteEventsColumns holds the columns for the "invite_events" table.
InviteEventsTable holds the schema information for the "invite_events" table.
InvitesColumns holds the columns for the "invites" table.
InvitesTable holds the schema information for the "invites" table.
NarrativeBlockedGroupsColumns holds the columns for the "narrative_blocked_groups" table.
NarrativeBlockedGroupsTable holds the schema information for the "narrative_blocked_groups" table.
NarrativeEditorsColumns holds the columns for the "narrative_editors" table.
NarrativeEditorsTable holds the schema information for the "narrative_editors" table.
NarrativeHistoryColumns holds the columns for the "narrative_history" table.
NarrativeHistoryTable holds the schema information for the "narrative_history" table.
NarrativesColumns holds the columns for the "narratives" table.
NarrativesTable holds the schema information for the "narratives" table.
NarrativeViewersColumns holds the columns for the "narrative_viewers" table.
NarrativeViewersTable holds the schema information for the "narrative_viewers" table.
NoteHistoryColumns holds the columns for the "note_history" table.
NoteHistoryTable holds the schema information for the "note_history" table.
NotesColumns holds the columns for the "notes" table.
NotesTable holds the schema information for the "notes" table.
OrganizationControlCreatorsColumns holds the columns for the "organization_control_creators" table.
OrganizationControlCreatorsTable holds the schema information for the "organization_control_creators" table.
OrganizationControlObjectiveCreatorsColumns holds the columns for the "organization_control_objective_creators" table.
OrganizationControlObjectiveCreatorsTable holds the schema information for the "organization_control_objective_creators" table.
OrganizationEventsColumns holds the columns for the "organization_events" table.
OrganizationEventsTable holds the schema information for the "organization_events" table.
OrganizationFilesColumns holds the columns for the "organization_files" table.
OrganizationFilesTable holds the schema information for the "organization_files" table.
OrganizationGroupCreatorsColumns holds the columns for the "organization_group_creators" table.
OrganizationGroupCreatorsTable holds the schema information for the "organization_group_creators" table.
OrganizationHistoryColumns holds the columns for the "organization_history" table.
OrganizationHistoryTable holds the schema information for the "organization_history" table.
OrganizationInternalPolicyCreatorsColumns holds the columns for the "organization_internal_policy_creators" table.
OrganizationInternalPolicyCreatorsTable holds the schema information for the "organization_internal_policy_creators" table.
OrganizationNarrativeCreatorsColumns holds the columns for the "organization_narrative_creators" table.
OrganizationNarrativeCreatorsTable holds the schema information for the "organization_narrative_creators" table.
OrganizationPersonalAccessTokensColumns holds the columns for the "organization_personal_access_tokens" table.
OrganizationPersonalAccessTokensTable holds the schema information for the "organization_personal_access_tokens" table.
OrganizationProcedureCreatorsColumns holds the columns for the "organization_procedure_creators" table.
OrganizationProcedureCreatorsTable holds the schema information for the "organization_procedure_creators" table.
OrganizationProgramCreatorsColumns holds the columns for the "organization_program_creators" table.
OrganizationProgramCreatorsTable holds the schema information for the "organization_program_creators" table.
OrganizationRiskCreatorsColumns holds the columns for the "organization_risk_creators" table.
OrganizationRiskCreatorsTable holds the schema information for the "organization_risk_creators" table.
OrganizationsColumns holds the columns for the "organizations" table.
OrganizationSecretsColumns holds the columns for the "organization_secrets" table.
OrganizationSecretsTable holds the schema information for the "organization_secrets" table.
OrganizationSettingFilesColumns holds the columns for the "organization_setting_files" table.
OrganizationSettingFilesTable holds the schema information for the "organization_setting_files" table.
OrganizationSettingHistoryColumns holds the columns for the "organization_setting_history" table.
OrganizationSettingHistoryTable holds the schema information for the "organization_setting_history" table.
OrganizationSettingsColumns holds the columns for the "organization_settings" table.
OrganizationSettingsTable holds the schema information for the "organization_settings" table.
OrganizationsTable holds the schema information for the "organizations" table.
OrganizationTasksColumns holds the columns for the "organization_tasks" table.
OrganizationTasksTable holds the schema information for the "organization_tasks" table.
OrganizationTemplateCreatorsColumns holds the columns for the "organization_template_creators" table.
OrganizationTemplateCreatorsTable holds the schema information for the "organization_template_creators" table.
OrgMembershipEventsColumns holds the columns for the "org_membership_events" table.
OrgMembershipEventsTable holds the schema information for the "org_membership_events" table.
OrgMembershipHistoryColumns holds the columns for the "org_membership_history" table.
OrgMembershipHistoryTable holds the schema information for the "org_membership_history" table.
OrgMembershipsColumns holds the columns for the "org_memberships" table.
OrgMembershipsTable holds the schema information for the "org_memberships" table.
OrgSubscriptionHistoryColumns holds the columns for the "org_subscription_history" table.
OrgSubscriptionHistoryTable holds the schema information for the "org_subscription_history" table.
OrgSubscriptionsColumns holds the columns for the "org_subscriptions" table.
OrgSubscriptionsTable holds the schema information for the "org_subscriptions" table.
PasswordResetTokensColumns holds the columns for the "password_reset_tokens" table.
PasswordResetTokensTable holds the schema information for the "password_reset_tokens" table.
PersonalAccessTokenEventsColumns holds the columns for the "personal_access_token_events" table.
PersonalAccessTokenEventsTable holds the schema information for the "personal_access_token_events" table.
PersonalAccessTokensColumns holds the columns for the "personal_access_tokens" table.
PersonalAccessTokensTable holds the schema information for the "personal_access_tokens" table.
ProcedureBlockedGroupsColumns holds the columns for the "procedure_blocked_groups" table.
ProcedureBlockedGroupsTable holds the schema information for the "procedure_blocked_groups" table.
ProcedureEditorsColumns holds the columns for the "procedure_editors" table.
ProcedureEditorsTable holds the schema information for the "procedure_editors" table.
ProcedureHistoryColumns holds the columns for the "procedure_history" table.
ProcedureHistoryTable holds the schema information for the "procedure_history" table.
ProcedureNarrativesColumns holds the columns for the "procedure_narratives" table.
ProcedureNarrativesTable holds the schema information for the "procedure_narratives" table.
ProcedureRisksColumns holds the columns for the "procedure_risks" table.
ProcedureRisksTable holds the schema information for the "procedure_risks" table.
ProceduresColumns holds the columns for the "procedures" table.
ProceduresTable holds the schema information for the "procedures" table.
ProcedureTasksColumns holds the columns for the "procedure_tasks" table.
ProcedureTasksTable holds the schema information for the "procedure_tasks" table.
ProgramActionPlansColumns holds the columns for the "program_action_plans" table.
ProgramActionPlansTable holds the schema information for the "program_action_plans" table.
ProgramBlockedGroupsColumns holds the columns for the "program_blocked_groups" table.
ProgramBlockedGroupsTable holds the schema information for the "program_blocked_groups" table.
ProgramControlObjectivesColumns holds the columns for the "program_control_objectives" table.
ProgramControlObjectivesTable holds the schema information for the "program_control_objectives" table.
ProgramControlsColumns holds the columns for the "program_controls" table.
ProgramControlsTable holds the schema information for the "program_controls" table.
ProgramEditorsColumns holds the columns for the "program_editors" table.
ProgramEditorsTable holds the schema information for the "program_editors" table.
ProgramFilesColumns holds the columns for the "program_files" table.
ProgramFilesTable holds the schema information for the "program_files" table.
ProgramHistoryColumns holds the columns for the "program_history" table.
ProgramHistoryTable holds the schema information for the "program_history" table.
ProgramInternalPoliciesColumns holds the columns for the "program_internal_policies" table.
ProgramInternalPoliciesTable holds the schema information for the "program_internal_policies" table.
ProgramMembershipHistoryColumns holds the columns for the "program_membership_history" table.
ProgramMembershipHistoryTable holds the schema information for the "program_membership_history" table.
ProgramMembershipsColumns holds the columns for the "program_memberships" table.
ProgramMembershipsTable holds the schema information for the "program_memberships" table.
ProgramNarrativesColumns holds the columns for the "program_narratives" table.
ProgramNarrativesTable holds the schema information for the "program_narratives" table.
ProgramNotesColumns holds the columns for the "program_notes" table.
ProgramNotesTable holds the schema information for the "program_notes" table.
ProgramProceduresColumns holds the columns for the "program_procedures" table.
ProgramProceduresTable holds the schema information for the "program_procedures" table.
ProgramRisksColumns holds the columns for the "program_risks" table.
ProgramRisksTable holds the schema information for the "program_risks" table.
ProgramsColumns holds the columns for the "programs" table.
ProgramsTable holds the schema information for the "programs" table.
ProgramSubcontrolsColumns holds the columns for the "program_subcontrols" table.
ProgramSubcontrolsTable holds the schema information for the "program_subcontrols" table.
ProgramTasksColumns holds the columns for the "program_tasks" table.
ProgramTasksTable holds the schema information for the "program_tasks" table.
ProgramViewersColumns holds the columns for the "program_viewers" table.
ProgramViewersTable holds the schema information for the "program_viewers" table.
RiskActionPlansColumns holds the columns for the "risk_action_plans" table.
RiskActionPlansTable holds the schema information for the "risk_action_plans" table.
RiskBlockedGroupsColumns holds the columns for the "risk_blocked_groups" table.
RiskBlockedGroupsTable holds the schema information for the "risk_blocked_groups" table.
RiskEditorsColumns holds the columns for the "risk_editors" table.
RiskEditorsTable holds the schema information for the "risk_editors" table.
RiskHistoryColumns holds the columns for the "risk_history" table.
RiskHistoryTable holds the schema information for the "risk_history" table.
RisksColumns holds the columns for the "risks" table.
RisksTable holds the schema information for the "risks" table.
RiskViewersColumns holds the columns for the "risk_viewers" table.
RiskViewersTable holds the schema information for the "risk_viewers" table.
StandardActionPlansColumns holds the columns for the "standard_action_plans" table.
StandardActionPlansTable holds the schema information for the "standard_action_plans" table.
StandardControlObjectivesColumns holds the columns for the "standard_control_objectives" table.
StandardControlObjectivesTable holds the schema information for the "standard_control_objectives" table.
StandardControlsColumns holds the columns for the "standard_controls" table.
StandardControlsTable holds the schema information for the "standard_controls" table.
StandardHistoryColumns holds the columns for the "standard_history" table.
StandardHistoryTable holds the schema information for the "standard_history" table.
StandardProgramsColumns holds the columns for the "standard_programs" table.
StandardProgramsTable holds the schema information for the "standard_programs" table.
StandardsColumns holds the columns for the "standards" table.
StandardsTable holds the schema information for the "standards" table.
SubcontrolHistoryColumns holds the columns for the "subcontrol_history" table.
SubcontrolHistoryTable holds the schema information for the "subcontrol_history" table.
SubcontrolsColumns holds the columns for the "subcontrols" table.
SubcontrolsTable holds the schema information for the "subcontrols" table.
SubcontrolTasksColumns holds the columns for the "subcontrol_tasks" table.
SubcontrolTasksTable holds the schema information for the "subcontrol_tasks" table.
SubscriberEventsColumns holds the columns for the "subscriber_events" table.
SubscriberEventsTable holds the schema information for the "subscriber_events" table.
SubscribersColumns holds the columns for the "subscribers" table.
SubscribersTable holds the schema information for the "subscribers" table.
Tables holds all the tables in the schema.
TaskHistoryColumns holds the columns for the "task_history" table.
TaskHistoryTable holds the schema information for the "task_history" table.
TasksColumns holds the columns for the "tasks" table.
TasksTable holds the schema information for the "tasks" table.
TemplateFilesColumns holds the columns for the "template_files" table.
TemplateFilesTable holds the schema information for the "template_files" table.
TemplateHistoryColumns holds the columns for the "template_history" table.
TemplateHistoryTable holds the schema information for the "template_history" table.
TemplatesColumns holds the columns for the "templates" table.
TemplatesTable holds the schema information for the "templates" table.
TfaSettingsColumns holds the columns for the "tfa_settings" table.
TfaSettingsTable holds the schema information for the "tfa_settings" table.
UserActionPlansColumns holds the columns for the "user_action_plans" table.
UserActionPlansTable holds the schema information for the "user_action_plans" table.
UserEventsColumns holds the columns for the "user_events" table.
UserEventsTable holds the schema information for the "user_events" table.
UserFilesColumns holds the columns for the "user_files" table.
UserFilesTable holds the schema information for the "user_files" table.
UserHistoryColumns holds the columns for the "user_history" table.
UserHistoryTable holds the schema information for the "user_history" table.
UsersColumns holds the columns for the "users" table.
UserSettingFilesColumns holds the columns for the "user_setting_files" table.
UserSettingFilesTable holds the schema information for the "user_setting_files" table.
UserSettingHistoryColumns holds the columns for the "user_setting_history" table.
UserSettingHistoryTable holds the schema information for the "user_setting_history" table.
UserSettingsColumns holds the columns for the "user_settings" table.
UserSettingsTable holds the schema information for the "user_settings" table.
UsersTable holds the schema information for the "users" table.
UserSubcontrolsColumns holds the columns for the "user_subcontrols" table.
UserSubcontrolsTable holds the schema information for the "user_subcontrols" table.
WebauthnsColumns holds the columns for the "webauthns" table.
WebauthnsTable holds the schema information for the "webauthns" table.
WithDropColumn sets the drop column option to the migration.
WithDropIndex sets the drop index option to the migration.
WithForeignKeys enables creating foreign-key in schema DDL.
WithGlobalUniqueID sets the universal ids options to the migration.