forked from koffiebaard/what-the-sheet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
structure.sql
36 lines (34 loc) · 1.74 KB
/
structure.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
CREATE TABLE `sheet` (
`id` VARCHAR(32) NOT NULL,
`race` VARCHAR(50) NULL,
`name` VARCHAR(50) NULL,
`class` VARCHAR(50) NULL,
`created_at` DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`));
ALTER TABLE `sheet` ADD COLUMN `share_token` VARCHAR(40) NULL;
ALTER TABLE `sheet` ADD COLUMN `level` INTEGER NULL;
ALTER TABLE `sheet` ADD COLUMN `int` INTEGER NULL;
ALTER TABLE `sheet` ADD COLUMN `int_mod` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `int_saving_throw` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `wis` INTEGER NULL;
ALTER TABLE `sheet` ADD COLUMN `wis_mod` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `wis_saving_throw` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `char` INTEGER NULL;
ALTER TABLE `sheet` ADD COLUMN `char_mod` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `char_saving_throw` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `str` INTEGER NULL;
ALTER TABLE `sheet` ADD COLUMN `str_mod` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `str_saving_throw` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `dex` INTEGER NULL;
ALTER TABLE `sheet` ADD COLUMN `dex_mod` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `dex_saving_throw` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `con` INTEGER NULL;
ALTER TABLE `sheet` ADD COLUMN `con_mod` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `con_saving_throw` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `hp_max` INTEGER NULL;
ALTER TABLE `sheet` ADD COLUMN `hp_cur` INTEGER NULL;
ALTER TABLE `sheet` ADD COLUMN `hp_tmp` INTEGER NULL;
ALTER TABLE `sheet` ADD COLUMN `hit_die` VARCHAR(5) NULL;
ALTER TABLE `sheet` ADD COLUMN `armor_class` INTEGER NULL;
ALTER TABLE `sheet` ADD COLUMN `initiative` VARCHAR(3) NULL;
ALTER TABLE `sheet` ADD COLUMN `speed` INTEGER NULL;