forked from Huangtuzhi/AlibabaRecommand
-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_table.sql
61 lines (53 loc) · 1.2 KB
/
add_table.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
61
use tianchi;
CREATE TABLE IF NOT EXISTS train_user_before(
user_id INT NOT NULL ,
item_id INT NOT NULL ,
behavior_type INT NOT NULL ,
user_geohash VARCHAR(255),
item_catagory INT NOT NULL ,
daydiff INT NOT NULL
);
CREATE TABLE IF NOT EXISTS train_user_after(
user_id INT NOT NULL ,
item_id INT NOT NULL ,
behavior_type INT NOT NULL ,
user_geohash VARCHAR(255),
item_catagory INT NOT NULL ,
daydiff INT NOT NULL
);
CREATE TABLE IF NOT EXISTS user_look(
user_id INT NOT NULL,
item_id INT NOT NULL,
look VARCHAR(255) NOT NULL
);
CREATE TABLE IF NOT EXISTS user_store(
user_id INT NOT NULL,
item_id INT NOT NULL,
store VARCHAR(255) NOT NULL
);
CREATE TABLE IF NOT EXISTS user_cart(
user_id INT NOT NULL,
item_id INT NOT NULL,
cart VARCHAR(255) NOT NULL
);
CREATE TABLE IF NOT EXISTS user_buy(
user_id INT NOT NULL,
item_id INT NOT NULL,
buy VARCHAR(255) NOT NULL
);
CREATE TABLE IF NOT EXISTS user_features(
user_id INT NOT NULL,
item_id INT NOT NULL,
look VARCHAR(255) NOT NULL,
store VARCHAR(255) NOT NULL,
cart VARCHAR(255) NOT NULL,
buy VARCHAR(255) NOT NULL
);
CREATE TABLE IF NOT EXISTS pure_data(
user_id INT NOT NULL,
item_id INT NOT NULL,
look VARCHAR(255) ,
store VARCHAR(255) ,
cart VARCHAR(255) ,
buy VARCHAR(255)
);