mirror of
https://github.com/storytold/artcraft.git
synced 2026-10-25 10:39:37 +00:00
5224da1968
- API first draft is done - Schema is not quite done - Queries obviously not ready
29 lines
912 B
SQL
29 lines
912 B
SQL
-- NB: This is a manually squashed view of all the CREATE and ALTER statements,
|
|
-- with comments attached to the fields for centralized documentation.
|
|
|
|
-- noinspection SqlDialectInspectionForFile
|
|
-- noinspection SqlNoDataSourceInspectionForFile
|
|
-- noinspection SqlResolveForFile
|
|
|
|
-- Stores prompts/descriptions used when creating a character.
|
|
CREATE TABLE character_creation_prompts (
|
|
-- Not used for anything except replication.
|
|
id BIGINT(20) NOT NULL AUTO_INCREMENT,
|
|
|
|
-- Foreign key to the characters table.
|
|
character_token VARCHAR(32) NOT NULL,
|
|
|
|
-- The prompt or description used during character creation.
|
|
prompt TEXT DEFAULT NULL,
|
|
|
|
-- ========== TIMESTAMPS ==========
|
|
|
|
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
-- ========== INDICES ==========
|
|
|
|
PRIMARY KEY (id),
|
|
KEY index_character_token (character_token)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|