Add other db tables
This commit is contained in:
1
migrations/000001_create_races/down.sql
Normal file
1
migrations/000001_create_races/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE races;
|
||||
7
migrations/000001_create_races/up.sql
Normal file
7
migrations/000001_create_races/up.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE IF NOT EXISTS races (
|
||||
id INTEGER GENERATED ALWAYS AS IDENTITY,
|
||||
name TEXT NOT NULL,
|
||||
size TEXT NOT NULL,
|
||||
source TEXT NOT NULL,
|
||||
data JSON NOT NULL
|
||||
);
|
||||
1
migrations/000002_create_classes/down.sql
Normal file
1
migrations/000002_create_classes/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE classes;
|
||||
3
migrations/000002_create_classes/up.sql
Normal file
3
migrations/000002_create_classes/up.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
CREATE TABLE IF NOT EXISTS classes (
|
||||
id INTEGER GENERATED ALWAYS AS IDENTITY
|
||||
);
|
||||
1
migrations/000003_create_feats/down.sql
Normal file
1
migrations/000003_create_feats/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE feats;
|
||||
3
migrations/000003_create_feats/up.sql
Normal file
3
migrations/000003_create_feats/up.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
CREATE TABLE IF NOT EXISTS feats (
|
||||
id INTEGER GENERATED ALWAYS AS IDENTITY
|
||||
);
|
||||
1
migrations/000004_create_options_features/down.sql
Normal file
1
migrations/000004_create_options_features/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE options_features;
|
||||
3
migrations/000004_create_options_features/up.sql
Normal file
3
migrations/000004_create_options_features/up.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
CREATE TABLE IF NOT EXISTS options_features (
|
||||
id INTEGER GENERATED ALWAYS AS IDENTITY
|
||||
);
|
||||
1
migrations/000005_create_backgrounds/down.sql
Normal file
1
migrations/000005_create_backgrounds/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE backgrounds;
|
||||
3
migrations/000005_create_backgrounds/up.sql
Normal file
3
migrations/000005_create_backgrounds/up.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
CREATE TABLE IF NOT EXISTS backgrounds (
|
||||
id INTEGER GENERATED ALWAYS AS IDENTITY
|
||||
);
|
||||
1
migrations/000006_create_items/down.sql
Normal file
1
migrations/000006_create_items/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE items;
|
||||
3
migrations/000006_create_items/up.sql
Normal file
3
migrations/000006_create_items/up.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
CREATE TABLE IF NOT EXISTS items (
|
||||
id INTEGER GENERATED ALWAYS AS IDENTITY
|
||||
);
|
||||
1
migrations/000007_create_spells/down.sql
Normal file
1
migrations/000007_create_spells/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE spells;
|
||||
18
migrations/000007_create_spells/up.sql
Normal file
18
migrations/000007_create_spells/up.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
CREATE TABLE IF NOT EXISTS spells (
|
||||
id INTEGER GENERATED ALWAYS AS IDENTITY,
|
||||
name TEXT NOT NULL,
|
||||
school TEXT NOT NULL,
|
||||
level TEXT NOT NULL,
|
||||
ritual BOOLEAN DEFAULT FALSE,
|
||||
casting_time TEXT NOT NULL,
|
||||
range TEXT NOT NULL,
|
||||
components_verbal BOOLEAN DEFAULT FALSE,
|
||||
components_somatic BOOLEAN DEFAULT FALSE,
|
||||
components_material BOOLEAN DEFAULT FALSE,
|
||||
components_materials_needed TEXT
|
||||
duration TEXT NOT NULL,
|
||||
classes TEXT[] NOT NULL,
|
||||
sources TEXT[] NOT NULL,
|
||||
tags TEXT[]
|
||||
description TEXT NOT NULL
|
||||
);
|
||||
1
migrations/000008_create_conditions/down.sql
Normal file
1
migrations/000008_create_conditions/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE conditions;
|
||||
3
migrations/000008_create_conditions/up.sql
Normal file
3
migrations/000008_create_conditions/up.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
CREATE TABLE IF NOT EXISTS conditions (
|
||||
id INTEGER GENERATED ALWAYS AS IDENTITY
|
||||
);
|
||||
1
migrations/000009_create_bestiary/down.sql
Normal file
1
migrations/000009_create_bestiary/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE bestiary;
|
||||
3
migrations/000009_create_bestiary/up.sql
Normal file
3
migrations/000009_create_bestiary/up.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
CREATE TABLE IF NOT EXISTS bestiary (
|
||||
id INTEGER GENERATED ALWAYS AS IDENTITY
|
||||
);
|
||||
Reference in New Issue
Block a user