[41d3f60] | 1 | DROP TABLE IF EXISTS "public"."admins";
|
---|
| 2 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 3 |
|
---|
| 4 | -- Sequence and defined type
|
---|
| 5 | CREATE SEQUENCE IF NOT EXISTS admins_id_seq;
|
---|
| 6 |
|
---|
| 7 | -- Table Definition
|
---|
| 8 | CREATE TABLE "public"."admins" (
|
---|
| 9 | "id" int4 NOT NULL DEFAULT nextval('admins_id_seq'::regclass),
|
---|
| 10 | "username" text,
|
---|
| 11 | "password" text,
|
---|
| 12 | "salt" text
|
---|
| 13 | );
|
---|
| 14 |
|
---|
| 15 | DROP TABLE IF EXISTS "public"."blackjack";
|
---|
| 16 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 17 |
|
---|
| 18 | -- Table Definition
|
---|
| 19 | CREATE TABLE "public"."blackjack" (
|
---|
| 20 | "data" text,
|
---|
| 21 | "identifier" text DEFAULT 'blackjack_data'::text
|
---|
| 22 | );
|
---|
| 23 |
|
---|
| 24 | DROP TABLE IF EXISTS "public"."blackjack_history";
|
---|
| 25 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 26 |
|
---|
| 27 | -- Sequence and defined type
|
---|
| 28 | CREATE SEQUENCE IF NOT EXISTS blackjack_history_id_seq;
|
---|
| 29 |
|
---|
| 30 | -- Table Definition
|
---|
| 31 | CREATE TABLE "public"."blackjack_history" (
|
---|
| 32 | "id" int4 NOT NULL DEFAULT nextval('blackjack_history_id_seq'::regclass),
|
---|
| 33 | "username" text,
|
---|
| 34 | "history" text
|
---|
| 35 | );
|
---|
| 36 |
|
---|
| 37 | DROP TABLE IF EXISTS "public"."complaints";
|
---|
| 38 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 39 |
|
---|
| 40 | -- Sequence and defined type
|
---|
| 41 | CREATE SEQUENCE IF NOT EXISTS complaints_id_seq;
|
---|
| 42 |
|
---|
| 43 | -- Table Definition
|
---|
| 44 | CREATE TABLE "public"."complaints" (
|
---|
| 45 | "id" int4 NOT NULL DEFAULT nextval('complaints_id_seq'::regclass),
|
---|
| 46 | "date" text,
|
---|
| 47 | "by" text,
|
---|
| 48 | "description" text,
|
---|
| 49 | "answered" text,
|
---|
| 50 | "answer" text
|
---|
| 51 | );
|
---|
| 52 |
|
---|
| 53 | DROP TABLE IF EXISTS "public"."credit_cards";
|
---|
| 54 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 55 |
|
---|
| 56 | -- Sequence and defined type
|
---|
| 57 | CREATE SEQUENCE IF NOT EXISTS credit_cards_id_seq;
|
---|
| 58 |
|
---|
| 59 | -- Table Definition
|
---|
| 60 | CREATE TABLE "public"."credit_cards" (
|
---|
| 61 | "id" int4 NOT NULL DEFAULT nextval('credit_cards_id_seq'::regclass),
|
---|
| 62 | "username" text,
|
---|
| 63 | "card_hash" text,
|
---|
| 64 | "card_salt" text
|
---|
| 65 | );
|
---|
| 66 |
|
---|
| 67 | DROP TABLE IF EXISTS "public"."players";
|
---|
| 68 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 69 |
|
---|
| 70 | -- Sequence and defined type
|
---|
| 71 | CREATE SEQUENCE IF NOT EXISTS players_id_seq;
|
---|
| 72 |
|
---|
| 73 | -- Table Definition
|
---|
| 74 | CREATE TABLE "public"."players" (
|
---|
| 75 | "id" int4 NOT NULL DEFAULT nextval('players_id_seq'::regclass),
|
---|
| 76 | "username" text NOT NULL,
|
---|
| 77 | "display_name" text NOT NULL,
|
---|
| 78 | "credits" float8
|
---|
| 79 | );
|
---|
| 80 |
|
---|
| 81 | DROP TABLE IF EXISTS "public"."poker";
|
---|
| 82 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 83 |
|
---|
| 84 | -- Table Definition
|
---|
| 85 | CREATE TABLE "public"."poker" (
|
---|
| 86 | "data" text,
|
---|
| 87 | "identifier" text DEFAULT 'poker_data'::text
|
---|
| 88 | );
|
---|
| 89 |
|
---|
| 90 | DROP TABLE IF EXISTS "public"."poker_history";
|
---|
| 91 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 92 |
|
---|
| 93 | -- Sequence and defined type
|
---|
| 94 | CREATE SEQUENCE IF NOT EXISTS poker_history_id_seq;
|
---|
| 95 |
|
---|
| 96 | -- Table Definition
|
---|
| 97 | CREATE TABLE "public"."poker_history" (
|
---|
| 98 | "id" int4 NOT NULL DEFAULT nextval('poker_history_id_seq'::regclass),
|
---|
| 99 | "username" text,
|
---|
| 100 | "history" text
|
---|
| 101 | );
|
---|
| 102 |
|
---|
| 103 | DROP TABLE IF EXISTS "public"."roulette";
|
---|
| 104 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 105 |
|
---|
| 106 | -- Table Definition
|
---|
| 107 | CREATE TABLE "public"."roulette" (
|
---|
| 108 | "data" text,
|
---|
| 109 | "identifier" text DEFAULT 'roulette_data'::text
|
---|
| 110 | );
|
---|
| 111 |
|
---|
| 112 | DROP TABLE IF EXISTS "public"."roulette_history";
|
---|
| 113 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 114 |
|
---|
| 115 | -- Sequence and defined type
|
---|
| 116 | CREATE SEQUENCE IF NOT EXISTS roulette_history_id_seq;
|
---|
| 117 |
|
---|
| 118 | -- Table Definition
|
---|
| 119 | CREATE TABLE "public"."roulette_history" (
|
---|
| 120 | "id" int4 NOT NULL DEFAULT nextval('roulette_history_id_seq'::regclass),
|
---|
| 121 | "username" text,
|
---|
| 122 | "history" text
|
---|
| 123 | );
|
---|
| 124 |
|
---|
| 125 | DROP TABLE IF EXISTS "public"."sessions";
|
---|
| 126 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 127 |
|
---|
| 128 | -- Table Definition
|
---|
| 129 | CREATE TABLE "public"."sessions" (
|
---|
| 130 | "data" text,
|
---|
| 131 | "identifier" text DEFAULT 'sessions_data'::text
|
---|
| 132 | );
|
---|
| 133 |
|
---|
| 134 | DROP TABLE IF EXISTS "public"."stats";
|
---|
| 135 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 136 |
|
---|
| 137 | -- Sequence and defined type
|
---|
| 138 | CREATE SEQUENCE IF NOT EXISTS stats_id_seq;
|
---|
| 139 |
|
---|
| 140 | -- Table Definition
|
---|
| 141 | CREATE TABLE "public"."stats" (
|
---|
| 142 | "id" int4 NOT NULL DEFAULT nextval('stats_id_seq'::regclass),
|
---|
| 143 | "username" text NOT NULL,
|
---|
| 144 | "blackjack_games" int8,
|
---|
| 145 | "roulette_games" int8,
|
---|
| 146 | "poker_games" int8,
|
---|
| 147 | "blackjack_won_games" int8,
|
---|
| 148 | "roulette_won_games" int8,
|
---|
| 149 | "poker_won_games" int8,
|
---|
| 150 | "money_bet" int8,
|
---|
| 151 | "money_earned" int8
|
---|
| 152 | );
|
---|
| 153 |
|
---|
| 154 | DROP TABLE IF EXISTS "public"."users";
|
---|
| 155 | -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup.
|
---|
| 156 |
|
---|
| 157 | -- Sequence and defined type
|
---|
| 158 | CREATE SEQUENCE IF NOT EXISTS users_id_seq;
|
---|
| 159 |
|
---|
| 160 | -- Table Definition
|
---|
| 161 | CREATE TABLE "public"."users" (
|
---|
| 162 | "id" int4 NOT NULL DEFAULT nextval('users_id_seq'::regclass),
|
---|
| 163 | "username" text NOT NULL,
|
---|
| 164 | "password" text NOT NULL,
|
---|
| 165 | "salt" text NOT NULL,
|
---|
| 166 | "email" text NOT NULL,
|
---|
| 167 | "email_activation_id" text NOT NULL,
|
---|
| 168 | "activated" text NOT NULL
|
---|
| 169 | );
|
---|
| 170 |
|
---|
| 171 | INSERT INTO "public"."admins" ("id", "username", "password", "salt") VALUES
|
---|
| 172 | (1, 'admin', 'c7258f1d118136a210cbd591a5bf03236226d34e6567bdf4ccc780dcd96a722c4a21b3433eb282220d8d4172d99c2ad6a7c7be1d2ab3b20e090cf8d3c799d578', 'fd67bce156239de46b59f05aaed57435');
|
---|
| 173 |
|
---|
| 174 |
|
---|
| 175 | INSERT INTO "public"."blackjack" ("data", "identifier") VALUES
|
---|
| 176 | ('[]', 'blackjack_data');
|
---|
| 177 |
|
---|
| 178 |
|
---|
| 179 |
|
---|
| 180 |
|
---|
| 181 | INSERT INTO "public"."complaints" ("id", "date", "by", "description", "answered", "answer") VALUES
|
---|
| 182 | (1, '2022-07-13T19:22:46.631+02:00', 'simon', 'I have a problem with logging in. It says my name is already taken.', 'true', 'Unfortunately, that means that someone else has already registered with that username before you. Please choose a different a username.');
|
---|
| 183 |
|
---|
| 184 |
|
---|
| 185 |
|
---|
| 186 |
|
---|
| 187 |
|
---|
| 188 |
|
---|
| 189 | INSERT INTO "public"."poker" ("data", "identifier") VALUES
|
---|
| 190 | ('[]', 'poker_data');
|
---|
| 191 |
|
---|
| 192 |
|
---|
| 193 |
|
---|
| 194 |
|
---|
| 195 | INSERT INTO "public"."roulette" ("data", "identifier") VALUES
|
---|
| 196 | ('{}', 'roulette_data');
|
---|
| 197 |
|
---|
| 198 |
|
---|
| 199 |
|
---|
| 200 |
|
---|
| 201 | INSERT INTO "public"."sessions" ("data", "identifier") VALUES
|
---|
| 202 | ('[]', 'sessions_data');
|
---|
| 203 |
|
---|
| 204 |
|
---|
| 205 |
|
---|
| 206 |
|
---|
| 207 |
|
---|