forked from scummvm/scummvm-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.xml
128 lines (128 loc) · 6.19 KB
/
schema.xml
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
128
<?xml version="1.0" encoding="UTF-8"?>
<database name="scummvm" defaultIdMethod="native" namespace="ScummVM\OrmObjects">
<behavior name="auto_add_pk">
<parameter name="name" value="auto_id" />
</behavior>
<table name="game" phpName="Game">
<column name="id" type="varchar" required="true" primaryKey="true"/>
<column name="name" type="varchar" size="255" required="true" primaryString="true" />
<column name="datafiles" type="varchar" size="255"/>
<column name="engine_id" type="varchar" size="24" required="true"/>
<column name="company_id" type="varchar" size="24" required="true"/>
<column name="moby_id" type="integer"/>
<column name="steam_id" type="integer"/>
<column name="gog_id" type="varchar"/>
<column name="additional_stores" type="varchar"/>
<column name="wikipedia_page" type="varchar"/>
<column name="series_id" type="varchar"/>
<foreign-key foreignTable="engine" onDelete="CASCADE">
<reference local="engine_id" foreign="id"/>
</foreign-key>
<foreign-key foreignTable="company" onDelete="CASCADE">
<reference local="company_id" foreign="id"/>
</foreign-key>
<foreign-key foreignTable="series" onDelete="CASCADE">
<reference local="series_id" foreign="id"/>
</foreign-key>
</table>
<table name="engine" phpName="Engine">
<column name="id" type="varchar" required="true" primaryKey="true"/>
<column name="name" type="varchar" size="128" required="true"/>
<column name="alt_name" type="varchar" size="128"/>
<column name="enabled" type="boolean"/>
</table>
<table name="company" phpName="Company">
<column name="id" type="varchar" required="true" primaryKey="true"/>
<column name="name" type="varchar" size="128" required="true"/>
<column name="alt_name" type="varchar" size="128"/>
</table>
<table name="series" phpName="Series">
<column name="id" type="varchar" required="true" primaryKey="true"/>
<column name="name" type="varchar" size="128" required="true"/>
</table>
<table name="compatibility" phpName="Compatibility">
<column name="id" type="varchar" required="true" primaryKey="true"/>
<column name="support" type="varchar" size="24" required="true" />
<column name="since_version" type="varchar" size="24" required="true" primaryKey="true"/>
<column name="notes" type="varchar"/>
<column name="stable_platforms" type="varchar" size="255"/>
<column name="unstable_platforms" type="varchar" size="255"/>
<foreign-key foreignTable="game" onDelete="CASCADE">
<reference local="id" foreign="id"/>
</foreign-key>
<foreign-key foreignTable="version" onDelete="CASCADE">
<reference local="since_version" foreign="id"/>
</foreign-key>
</table>
<table name="platform" phpName="Platform">
<column name="id" type="varchar" required="true" primaryKey="true"/>
<column name="name" type="varchar" size="128" required="true"/>
<column name="moby_id" type="integer"/>
</table>
<table name="version" phpName="Version">
<column name="id" type="varchar" size="24" required="true" primaryKey="true"/>
<column name="major" type="SMALLINT" required="true"/>
<column name="minor" type="SMALLINT" required="true"/>
<column name="patch" type="SMALLINT" required="true"/>
<column name="release_date" type="timestamp" required="true"/>
</table>
<table name="screenshot" phpName="Screenshot">
<!-- id variant platform_id language -->
<column name="id" type="varchar" required="true"/>
<column name="variant" type="varchar" size="255" />
<column name="platform_id" type="varchar" size="24" required="true"/>
<column name="language" type="varchar" size="8" required="true"/>
<column name="variant_id" type="integer"/>
<foreign-key foreignTable="game" onDelete="CASCADE">
<reference local="id" foreign="id"/>
</foreign-key>
<foreign-key foreignTable="platform" onDelete="CASCADE">
<reference local="platform_id" foreign="id"/>
</foreign-key>
</table>
<table name="demo" phpName="Demo">
<column name="id" type="varchar" required="true"/>
<column name="platform_id" type="varchar" size="24" required="true"/>
<column name="category" type="varchar" size="255"/>
<column name="url" type="varchar" size="255"/>
<foreign-key foreignTable="game" onDelete="CASCADE">
<reference local="id" foreign="id"/>
</foreign-key>
<foreign-key foreignTable="platform" onDelete="CASCADE">
<reference local="platform_id" foreign="id"/>
</foreign-key>
</table>
<table name="director_demo" phpName="DirectorDemo">
<column name="id" type="varchar" required="true"/>
<column name="platform_id" type="varchar" size="24" required="true"/>
<column name="lang" type="varchar" size="8"/>
<column name="title" type="varchar" size="255"/>
<column name="version" type="SMALLINT"/>
<column name="url" type="varchar" size="255"/>
<foreign-key foreignTable="platform" onDelete="CASCADE">
<reference local="platform_id" foreign="id"/>
</foreign-key>
</table>
<table name="scummvm_downloads" phpName="Download">
<column name="name" type="varchar" size="255" required="true"/>
<column name="notes" type="varchar" size="255"/>
<column name="subcategory" type="varchar" size="24" required="true"/>
<column name="category" type="varchar" size="24" required="true"/>
<column name="category_icon" type="varchar" size="24"/>
<column name="enabled" type="boolean" />
<column name="user_agent" type="varchar" size="255"/>
<column name="url" type="varchar" size="255" required="true"/>
<column name="version" type="varchar" size="24" required="false"/>
</table>
<table name="game_downloads" phpName="GameDownload">
<column name="category" type="varchar" size="24" required="true"/>
<column name="game_id" type="varchar" size="24" required="true"/>
<column name="category_icon" type="varchar" size="24" required="true"/>
<column name="name" type="varchar" size="255" required="true"/>
<column name="notes" type="varchar" size="255"/>
<column name="url" type="varchar" size="255" required="true"/>
<foreign-key foreignTable="game" onDelete="CASCADE">
<reference local="game_id" foreign="id"/>
</foreign-key>
</table>
</database>