# Functions
CreateSchemaForTenant creates a new schema for a specific tenant in the PostgreSQL database, and migrates the private tables for the tenant.
DropSchemaForTenant drops the schema for a specific tenant in the PostgreSQL database (CASCADING all objects in the schema).
MigratePublicSchema migrates the public schema in the database.
New creates a new PostgreSQL dialector with multitenancy support.
Open opens a connection to a PostgreSQL database using the provided DSN (Data Source Name) and models.
RegisterModels registers the given models with the provided gorm.DB instance for multitenancy support.
# Constants
PublicSchemaName is the name of the public schema.
# Structs
No description provided by the author
Migrator is the struct that implements the [MultitenancyMigrator] interface.
TenantModel a basic GoLang struct which includes the following fields: DomainURL, SchemaName.
# Interfaces
MultitenancyMigrator is the interface for the postgres migrator with multitenancy support.
# Type aliases
No description provided by the author