-
Notifications
You must be signed in to change notification settings - Fork 0
/
platform db.txt
45 lines (43 loc) · 1.3 KB
/
platform db.txt
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
create table orders
(
id int auto_increment
primary key,
users_id int not null,
symbols_id varchar(222) not null,
type varchar(22) not null,
volume float not null,
rate_open float not null,
rate_real float not null,
profit float not null,
commission float not null,
take_profit float not null,
stop_loss float not null,
take varchar(11) not null,
date_create timestamp default CURRENT_TIMESTAMP not null,
status varchar(222) not null
);
create table rates
(
id int auto_increment
primary key,
type_orders varchar(11) not null,
symbol varchar(11) not null,
name varchar(22) not null,
last_price float not null
);
create table users
(
id
first_name
last_name
pswd
hash
balance
email
phone
avatar
email
unique (email),
email_2
unique (email)
);