This repository has been archived by the owner on May 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDatabase_Design.txt
127 lines (94 loc) · 3.78 KB
/
Database_Design.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
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
Database Description
- Port Table
- Builder Table
- Maintainers
- Maintainer-portkey
- Build History (The most important table)
- Tables for Statistics
Please go through : https://docs.google.com/spreadsheets/d/1Kgbpl1aHn-10fjXh-f4Wz24-TQw4Coaucidpxp7ZqOQ/edit?usp=sharing
For better visualisations. Then do comment/ suggest changes in this file .
Table Structures --
Port Table:
table name : port
table desc : This table consists of all the current port information.
.
├── portid # Integer Field || Primary key
├── portname # Text Field || Default = '' || Unique Value
├── description # Text Field || Default = ''
├── long_desc # Text Field || Default = ''
├── homepage # Text Field || Default = ''
├── platform # Text Field || Default = ''
├── portversionid # Text Field || Default = ''
├── license # Text Field || Default = ''
└── portdir # Text Field || Default = ''
Builder Table:
table name : builders
table desc : This table consist of all the builders information available.
.
├── builderid # Integer Field || Primary key
├── builder # Text Field || Default = ''
├── osname # Text Field || Default = ''
└── architecture # Text Field || Default = ''
Port Version:
table name : port_version
table desc : This table maps the ports with there different version .
.
├── portversionid # Integer Field || Primary key
├── portid # Integer Field || Default = ''
├── version # Text Field || Default = ''
└── variants # Text Field || Default = ''
Maintainers:
table name : maintainers
table desc : Unique maintainerid would be given.
Maintainers and there id would be present here.
.
├── maintainerid # Integer Field || Primary key
└── maintainers # Text Field || Default = ''
Maintainer - Portid
table name : maintainer-portid
table desc : Sets up the relation between maintainerid & portid portversionid.
Basically tells us which maintainer is handling which all ports.
.
├── maintainerid # Integer Field || NOT UNIQUE
├── portid # Integer Field || NOT UNIQUE
└── portversionid # Integer Field || NOT UNIQUE
Build History:
table name : build_history
table desc : Enitre build history would be saved here.
.
├── srno # Integer Field || Primary key
├── builderid # Integer Field || NOT UNIQUE
├── buildnumber # Integer Field || UNIQUE
├── portid # Integer Field || NOT UNIQUE
├── portversionid # Integer Field || NOT UNIQUE
├── timestamp # timestamp || NOT UNIQUE
├── success # Text Field || NOT UNIQUE
├── version # Text Field || NOT UNIQUE
├── reason # Text Field || NOT UNIQUE
├── info # Text Field || NOT UNIQUE
├── commitid # Text Field ||
└── distributable # Text Field || NOT UNIQUE
Table For Statistics -
Desc : All the results from 'mpstats' would be parsed and
these 2 tables would be populated
Port history:
table name : port_history
.
├── portid # Integer Field ||
├── portversionid # Integer Field ||
├── userid # Integer Field ||
├── timestamp # timestamp ||
├── variants # Text Field ||
└── requested # Integer Field ||
OS history
table name : os_history
.
├── userid # Integer Field ||
├── os_id # Text Field ||
├── architecture # Text Field ||
├── platform # Text Field ||
├── xcodeversion # Text Field ||
├── macportsversion # Text Field ||
├── timestamp # timestamp ||
├── defaultprefix # Integer Field ||
└── stdlib # Text Field ||