Files
im_server/server/db/mysql/schema.sql
T

26 lines
1.1 KiB
SQL

# THIS SCHEMA FILE IS FOR REFERENCE/DOCUMENTATION ONLY.
# DO NOT USE IT TO INITIALIZE THE DATABASE.
'READ INSTALLATION INSTRUCTIONS!';
# Current MySQL initialization is generated by server/db/mysql/adapter.go:
#
# - Control database: hotgo
# - im_tenant
# - im_tenant_config
# - im_public_uploads, im_tenant_applications and im_tenant_entry_feedbacks
# for unauthenticated enterprise registration and tenant-entry feedback
#
# - Default tenant business database: tinode
# - im_users, im_topics, im_subscriptions, im_messages and extension tables
# - im_http_idempotency and im_business_events_outbox for reliable HTTP writes
# - im_file_review_tasks for asynchronous content safety and malware checks
# - business tables do not store tenant_id in independent-database mode
#
# The previous shared-table tenant_id draft has been removed from this file to
# avoid accidental execution. If standalone SQL initialization scripts are
# needed later, split them explicitly into:
#
# - registry_schema.sql for the hotgo control database.
# - tenant_schema.sql for every tenant business database.