-
Notifications
You must be signed in to change notification settings - Fork 0
/
sql.sql
60 lines (50 loc) · 1.3 KB
/
sql.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
--> CRASH DOUBLE IMPLEMENTATION
-- CREATE TABLE crash_game (
-- date_ timestamp not null,
-- number integer[] not null
-- );
-- CREATE TABLE double_game (
-- date_ timestamp not null,
-- number integer[] not null
-- );
CREATE TABLE robotevolution (
id serial primary key,
name varchar(255) not null,
number integer[] not null,
created timestamp default now()
);
CREATE TABLE paylaoad_card (
id serial PRIMARY KEY,
name varchar(200) NOT null,
number text[] not null,
created TIMESTAMP DEFAULT now()
);
CREATE TABLE robotBetSygnal (
id serial primary key,
number jsonb not null,
created timestamp default now(),
detectStretegy text not null,
result boolean,
martingale boolean,
martingale2 boolean,
martingale3 boolean
);
CREATE TABLE users (
id serial PRIMARY KEY,
name varchar(200) not null,
username varchar(40) not null,
password varchar(40) not null,
sal text not null,
email varchar(200) not null,
phone varchar(200) not null,
address varchar(200) not null
);
CREATE TABLE users_filters (
id serial PRIMARY KEY,
user_id integer not null references users(id),
games jsonb not null,
created timestamp default now(),
string_msg text not null,
string_msg_green text not null,
string_msg_red text not null
);