Stripped out ui/api
This commit is contained in:
1
migrations/000000_create_messages/down.sql
Normal file
1
migrations/000000_create_messages/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE messages;
|
||||
12
migrations/000000_create_messages/up.sql
Normal file
12
migrations/000000_create_messages/up.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
CREATE TABLE IF NOT EXISTS messages (
|
||||
id TEXT PRIMARY KEY NOT NULL,
|
||||
guild_id BIGINT NOT NULL,
|
||||
channel_id BIGINT NOT NULL,
|
||||
user_id BIGINT NOT NULL,
|
||||
created BIGINT NOT NULL,
|
||||
model TEXT NOT NULL,
|
||||
request TEXT NOT NULL,
|
||||
response TEXT NOT NULL,
|
||||
request_tags TEXT[] NOT NULL,
|
||||
response_tags TEXT[] NOT NULL
|
||||
);
|
||||
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;
|
||||
15
migrations/000007_create_spells/up.sql
Normal file
15
migrations/000007_create_spells/up.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
CREATE TABLE IF NOT EXISTS spells (
|
||||
id INTEGER GENERATED ALWAYS AS IDENTITY,
|
||||
name TEXT NOT NULL,
|
||||
school TEXT NOT NULL,
|
||||
level INTEGER NOT NULL,
|
||||
ritual BOOLEAN DEFAULT FALSE,
|
||||
concentration BOOLEAN DEFAULT FALSE,
|
||||
classes TEXT[] NOT NULL,
|
||||
damage_inflict TEXT[] NOT NULL,
|
||||
damage_resist TEXT[] NOT NULL,
|
||||
conditions TEXT[] NOT NULL,
|
||||
saving_throw TEXT[] NOT NULL,
|
||||
attack_type TEXT,
|
||||
data JSONB 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
|
||||
);
|
||||
1
migrations/000010_create_guilds/down.sql
Normal file
1
migrations/000010_create_guilds/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE guilds;
|
||||
5
migrations/000010_create_guilds/up.sql
Normal file
5
migrations/000010_create_guilds/up.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
CREATE TABLE IF NOT EXISTS guilds (
|
||||
id BIGINT PRIMARY KEY NOT NULL,
|
||||
bot_id BIGINT NOT NULL,
|
||||
volume INTEGER NOT NULL
|
||||
);
|
||||
1
migrations/000011_create_users/down.sql
Normal file
1
migrations/000011_create_users/down.sql
Normal file
@@ -0,0 +1 @@
|
||||
DROP TABLE users;
|
||||
11
migrations/000011_create_users/up.sql
Normal file
11
migrations/000011_create_users/up.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
CREATE TABLE IF NOT EXISTS users (
|
||||
email TEXT PRIMARY KEY NOT NULL,
|
||||
hash TEXT NOT NULL,
|
||||
role TEXT NOT NULL,
|
||||
first_name TEXT NOT NULL,
|
||||
last_name TEXT NOT NULL,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
profile_picture TEXT,
|
||||
verified BOOLEAN NOT NULL DEFAULT FALSE
|
||||
);
|
||||
Reference in New Issue
Block a user