mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
cea2567e22
* add/register human command done * validations * crypto * move clientid * keys * fix: clientID * remove v2 package * tests * tests running * revert old code * instance domain from ctx * chore: rename zitadel app ids * comments * fix: test |
||
---|---|---|
.. | ||
01_user.sql | ||
02_database.sql | ||
03_grant_user.sql | ||
04_eventstore.sql | ||
05_projections.sql | ||
06_system.sql | ||
07_encryption_keys_table.sql | ||
08_enable_hash_sharded_indexes.sql | ||
09_events_table.sql | ||
10_system_sequence.sql | ||
11_unique_constraints_table.sql | ||
README.md |
SQL initialisation
The sql-files in this folder initialize the ZITADEL database and user. These objects need to exist before ZITADEL is able to set and start up.
files
- 01_user.sql: create the user zitadel uses to connect to the database
- 02_database.sql: create the database for zitadel
- 03_grant_user.sql: grants the user created before to have full access to its database. The user needs full access to the database because zitadel makes ddl/dml on runtime
- 04_eventstore.sql: creates the schema needed for eventsourcing
- 05_projections.sql: creates the schema needed to read the data
- 06_system.sql: creates the schema needed for ZITADEL itself
- 07_encryption_keys_table.sql: creates the table for encryption keys (for event data)
- files 08_enable_hash_sharded_indexes.sql and 09_events_table.sql must run in the same session
- 08_enable_hash_sharded_indexes.sql enables the hash sharded index feature for this session
- 09_events_table.sql creates the table for eventsourcing