Documentation
¶
Overview ¶
Package schema describes the Auth-All database schema independently from a specific database engine. Core and plugins contribute tables. A dialect renderer turns the effective schema into deterministic SQL.
Index ¶
Constants ¶
View Source
const ( TableUsers = "auth_users" TableCredentials = "auth_credentials" TableAccounts = "auth_accounts" TableSessions = "auth_sessions" TableTokens = "auth_tokens" TableOAuthStates = "auth_oauth_states" TableTOTP = "auth_totp" TableTOTPRecovery = "auth_totp_recovery" )
Core table names.
View Source
const MigrationTable = "auth_schema_migrations"
MigrationTable holds the applied statement IDs.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForeignKey ¶
type ForeignKey struct {
Column string
RefTable string
RefColumn string
OnDelete string // CASCADE or SET NULL. Empty means no action.
}
ForeignKey describes one foreign key constraint.
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
Schema is the effective set of tables.
type Statement ¶
Statement is one identified DDL statement.
The ID is stable across runs and identifies the statement in the applied migration record.
Click to show internal directories.
Click to hide internal directories.