-
Notifications
You must be signed in to change notification settings - Fork 17
/
schema.xml
123 lines (117 loc) · 2.64 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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE schema SYSTEM "../../../lib/pkp/dtd/xmlSchema.dtd">
<!--
* plugins/generic/funding/schema.xml
*
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* FundingPlugin DB XML schema.
*
-->
<schema version="0.2">
<!--
*
* TABLE funders
*
-->
<table name="funders">
<field name="funder_id" type="I8">
<KEY/>
<AUTOINCREMENT/>
</field>
<field name="funder_identification" type="C2" size="255">
<NOTNULL/>
</field>
<field name="submission_id" type="I8">
<NOTNULL/>
</field>
<field name="context_id" type="I8">
<NOTNULL/>
</field>
<descr>List of funder items for each context</descr>
</table>
<!--
*
* TABLE funder_settings
*
-->
<table name="funder_settings">
<field name="funder_id" type="I8">
<NOTNULL/>
</field>
<field name="locale" type="C2" size="14">
<NOTNULL/>
<DEFAULT VALUE=""/>
</field>
<field name="setting_name" type="C2" size="255">
<NOTNULL/>
</field>
<field name="setting_value" type="X"/>
<field name="setting_type" type="C2" size="6">
<NOTNULL/>
<descr>(bool|int|float|string|object)</descr>
</field>
<descr>Funder settings.</descr>
<index name="funder_settings_id">
<col>funder_id</col>
</index>
<index name="funder_settings_pkey">
<col>funder_id</col>
<col>locale</col>
<col>setting_name</col>
<UNIQUE />
</index>
</table>
<!--
*
* TABLE funder_award
*
-->
<table name="funder_awards">
<field name="funder_award_id" type="I8">
<KEY/>
<AUTOINCREMENT/>
</field>
<field name="funder_id" type="I8">
<NOTNULL/>
</field>
<field name="funder_award_number" type="C2" size="255">
<NOTNULL/>
</field>
<descr>List of funder_award items for each funder</descr>
</table>
<!--
*
* TABLE funder_award_settings
*
-->
<table name="funder_award_settings">
<field name="funder_award_id" type="I8">
<NOTNULL/>
</field>
<field name="locale" type="C2" size="14">
<NOTNULL/>
<DEFAULT VALUE=""/>
</field>
<field name="setting_name" type="C2" size="255">
<NOTNULL/>
</field>
<field name="setting_value" type="X"/>
<field name="setting_type" type="C2" size="6">
<NOTNULL/>
<descr>(bool|int|float|string|object)</descr>
</field>
<descr>Funder_award settings.</descr>
<index name="funder_award_settings_id">
<col>funder_award_id</col>
</index>
<index name="funder_award_settings_pkey">
<col>funder_award_id</col>
<col>locale</col>
<col>setting_name</col>
<UNIQUE />
</index>
</table>
</schema>