-
Notifications
You must be signed in to change notification settings - Fork 0
/
sims_schema.drdl
101 lines (101 loc) · 2.16 KB
/
sims_schema.drdl
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
schema:
- db: sims_test_db
tables:
- table: sims_item_col
collection: sims_item_col
pipeline: []
columns:
- Name: _id
MongoType: bson.ObjectId
SqlName: _id
SqlType: varchar
- Name: artist
MongoType: string
SqlName: artist
SqlType: varchar
- Name: artist_url
MongoType: string
SqlName: artist_url
SqlType: varchar
- Name: category
MongoType: string
SqlName: category
SqlType: varchar
- Name: description
MongoType: string
SqlName: description
SqlType: varchar
- Name: downloads
MongoType: int
SqlName: downloads
SqlType: int
- Name: favourited
MongoType: int
SqlName: favourited
SqlType: int
- Name: publish_date
MongoType: date
SqlName: publish_date
SqlType: timestamp
- Name: thanks
MongoType: int
SqlName: thanks
SqlType: int
- Name: title
MongoType: string
SqlName: title
SqlType: varchar
- Name: url
MongoType: string
SqlName: url
SqlType: varchar
- Name: views
MongoType: int
SqlName: views
SqlType: int
- table: sims_item_col_comments
collection: sims_item_col
pipeline: []
columns:
- Name: _id
MongoType: bson.ObjectId
SqlName: _id
SqlType: varchar
- table: sims_item_col_tags
collection: sims_item_col
pipeline:
- $unwind:
includeArrayIndex: tags_idx
path: $tags
columns:
- Name: _id
MongoType: bson.ObjectId
SqlName: _id
SqlType: varchar
- Name: tags
MongoType: string
SqlName: tags
SqlType: varchar
- Name: tags_idx
MongoType: int
SqlName: tags_idx
SqlType: int
- table: sims_item_col_types
collection: sims_item_col
pipeline:
- $unwind:
includeArrayIndex: types_idx
path: $types
columns:
- Name: _id
MongoType: bson.ObjectId
SqlName: _id
SqlType: varchar
- Name: types
MongoType: string
SqlName: types
SqlType: varchar
- Name: types_idx
MongoType: int
SqlName: types_idx
SqlType: int