source: dummy_database.sql@ e903234

main
Last change on this file since e903234 was 1df3fde, checked in by anastasovv <simon@…>, 2 years ago

Changed database file

  • Property mode set to 100644
File size: 6.6 KB
Line 
1DROP TABLE IF EXISTS "public"."blackjack";
2-- This script only contains the table creation statements and does not fully represent the table in database. It's still missing: indices, triggers. Do not use it as backup.
3
4-- Table Definition
5CREATE TABLE "public"."blackjack" (
6 "data" text,
7 "identifier" text DEFAULT 'blackjack_data'::text
8);
9
10DROP TABLE IF EXISTS "public"."players";
11-- This script only contains the table creation statements and does not fully represent the table in database. It's still missing: indices, triggers. Do not use it as backup.
12
13-- Squences
14CREATE SEQUENCE IF NOT EXISTS players_id_seq
15
16-- Table Definition
17CREATE TABLE "public"."players" (
18 "id" int4 NOT NULL DEFAULT nextval('players_id_seq'::regclass),
19 "username" text NOT NULL,
20 "display_name" text NOT NULL,
21 "credits" float8
22);
23
24DROP TABLE IF EXISTS "public"."poker";
25-- This script only contains the table creation statements and does not fully represent the table in database. It's still missing: indices, triggers. Do not use it as backup.
26
27-- Table Definition
28CREATE TABLE "public"."poker" (
29 "data" text,
30 "identifier" text DEFAULT 'poker_data'::text
31);
32
33DROP TABLE IF EXISTS "public"."roulette";
34-- This script only contains the table creation statements and does not fully represent the table in database. It's still missing: indices, triggers. Do not use it as backup.
35
36-- Table Definition
37CREATE TABLE "public"."roulette" (
38 "data" text,
39 "identifier" text DEFAULT 'roulette_data'::text
40);
41
42DROP TABLE IF EXISTS "public"."sessions";
43-- This script only contains the table creation statements and does not fully represent the table in database. It's still missing: indices, triggers. Do not use it as backup.
44
45-- Table Definition
46CREATE TABLE "public"."sessions" (
47 "data" text,
48 "identifier" text DEFAULT 'sessions_data'::text
49);
50
51DROP TABLE IF EXISTS "public"."stats";
52-- This script only contains the table creation statements and does not fully represent the table in database. It's still missing: indices, triggers. Do not use it as backup.
53
54-- Squences
55CREATE SEQUENCE IF NOT EXISTS stats_id_seq
56
57-- Table Definition
58CREATE TABLE "public"."stats" (
59 "id" int4 NOT NULL DEFAULT nextval('stats_id_seq'::regclass),
60 "username" text NOT NULL,
61 "blackjack_games" int8,
62 "roulette_games" int8,
63 "poker_games" int8,
64 "blackjack_won_games" int8,
65 "roulette_won_games" int8,
66 "poker_won_games" int8,
67 "money_bet" int8,
68 "money_earned" int8
69);
70
71DROP TABLE IF EXISTS "public"."users";
72-- This script only contains the table creation statements and does not fully represent the table in database. It's still missing: indices, triggers. Do not use it as backup.
73
74-- Squences
75CREATE SEQUENCE IF NOT EXISTS users_id_seq
76
77-- Table Definition
78CREATE TABLE "public"."users" (
79 "id" int4 NOT NULL DEFAULT nextval('users_id_seq'::regclass),
80 "username" text NOT NULL,
81 "password" text NOT NULL,
82 "salt" text NOT NULL
83);
84
85INSERT INTO "public"."blackjack" ("data", "identifier") VALUES
86('[]', 'blackjack_data');
87
88
89INSERT INTO "public"."players" ("id", "username", "display_name", "credits") VALUES
90(8, 'gis', 'Gis', 1147);
91INSERT INTO "public"."players" ("id", "username", "display_name", "credits") VALUES
92(10, 'test', 'Tester', 1000);
93INSERT INTO "public"."players" ("id", "username", "display_name", "credits") VALUES
94(11, 'guest', 'guester', 1000);
95INSERT INTO "public"."players" ("id", "username", "display_name", "credits") VALUES
96(9, 'david', 'Dvd', 2650),
97(6, 'simon', 'Simon', 10206);
98
99INSERT INTO "public"."poker" ("data", "identifier") VALUES
100('[]', 'poker_data');
101
102
103INSERT INTO "public"."roulette" ("data", "identifier") VALUES
104('{}', 'roulette_data');
105
106
107INSERT INTO "public"."sessions" ("data", "identifier") VALUES
108('[{"id":"8fc8ea87-94a2-4e20-a315-bef5795b4b99","displayName":"Evgi","username":"evgi","credits":10506,"lastActivity":1657280778431},{"id":"d1abae2c-e9b2-4df9-bb92-f7dc9e88d374","displayName":"a","username":"a","credits":5340,"lastActivity":1657640369530},{"id":"d52e06f3-694b-4552-bd4d-58c0062ddead","displayName":"asdasd","username":"asdasd","credits":3593,"lastActivity":1657577539897},{"id":"7cb0abcc-fd94-425a-abaf-be6c67122e9d","displayName":"Gis","username":"gis","credits":1147,"lastActivity":1657640369532},{"id":"7e49c3ae-818e-4a49-ba46-a1980ef33ca6","displayName":"Dvd","username":"david","credits":2650,"lastActivity":1657640499011},{"id":"879c0abd-cfcb-400b-b042-b15f5b59a971","displayName":"Simon","username":"simon","credits":10206,"lastActivity":1657641589917}]', 'sessions_data');
109
110
111INSERT INTO "public"."stats" ("id", "username", "blackjack_games", "roulette_games", "poker_games", "blackjack_won_games", "roulette_won_games", "poker_won_games", "money_bet", "money_earned") VALUES
112(6, 'gis', 0, 4, 0, 0, 1, 0, 72, 216);
113INSERT INTO "public"."stats" ("id", "username", "blackjack_games", "roulette_games", "poker_games", "blackjack_won_games", "roulette_won_games", "poker_won_games", "money_bet", "money_earned") VALUES
114(8, 'test', 0, 0, 0, 0, 0, 0, 0, 0);
115INSERT INTO "public"."stats" ("id", "username", "blackjack_games", "roulette_games", "poker_games", "blackjack_won_games", "roulette_won_games", "poker_won_games", "money_bet", "money_earned") VALUES
116(9, 'guest', 0, 0, 0, 0, 0, 0, 0, 0);
117INSERT INTO "public"."stats" ("id", "username", "blackjack_games", "roulette_games", "poker_games", "blackjack_won_games", "roulette_won_games", "poker_won_games", "money_bet", "money_earned") VALUES
118(7, 'david', 0, 2, 2, 0, 2, 1, 1768, 3418),
119(4, 'simon', 28, 18, 43, 12, 2, 17, 47175, 33530);
120
121INSERT INTO "public"."users" ("id", "username", "password", "salt") VALUES
122(10, 'simon', 'bcfdfad35ef0240e91e8bc969e0037b3ec1651a30fc5e0f56b2eb852124e592979f8b566abfbbe94872b43e43208e35053da81931a04d30f8b94460c2df52249', '99ab54b2affab7ec75ab3fbec005b4f0');
123INSERT INTO "public"."users" ("id", "username", "password", "salt") VALUES
124(12, 'gis', '4df04931f518225d0d55afc0db5e69cf5453a2d5ef0f6266223611aefc390f3c8971e37e75944d11f7ad185e3c5e5390c1fffbc5ef6d909a74adb6852ee2cfe0', '2a84f05ebf62c6d692f99dc72eec0c6e');
125INSERT INTO "public"."users" ("id", "username", "password", "salt") VALUES
126(13, 'david', 'e7cb9841fce607ab7d677fd3c6d02967249f92ac64c0bf0f14f84e1786f2a5787b2d2c7cbeece234f74aee0f75c27ae9fc354d088f30f89f5deef98865017ecb', 'a21f77281bba07b1d5ae5d5fe71ddf3d');
127INSERT INTO "public"."users" ("id", "username", "password", "salt") VALUES
128(14, 'test', '3b28f1d5ad3633ff23fbde106500e3ab6837779cad55092f83b9607294364177aa4eceb2e69f00bdd6f81cc6f062804a373d74503048dca1eceeb9de22425eab', '65ecbfcc453081ad8ae65470f7e50056'),
129(15, 'guest', 'a67c607687003434a04f89d805cc95b0a59bd310dfef6358b7e17c2a3c7b216f8c0c91d919fbfeea3c45635682b241b19d5a9841d83da43f164287c526efb924', '59eb67f0023c9b6fd246ff33382f739d');
Note: See TracBrowser for help on using the repository browser.