Add missing standard fields (Tomboy legacy):
[grauphel.git] / appinfo / database.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <database xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
3       xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/database.xsd">
4  <!-- http://www.wiltonhotel.com/_ext/pear/docs/MDB2/docs/xml_schema_documentation.html -->
5          <name>*dbname*</name>
6          <create>true</create>
7          <overwrite>false</overwrite>
8          <charset>utf8</charset>
9          <table>
10                 <name>*dbprefix*grauphel_oauth_tokens</name>
11                 <declaration>
12                         <field>
13                                 <name>token_id</name>
14                                 <type>integer</type>
15                                 <length>11</length>
16                                 <notnull>true</notnull>
17                                 <autoincrement>1</autoincrement>
18                                 <default>0</default>
19                         </field>
20                         <field>
21                                 <name>token_user</name>
22                                 <type>text</type>
23                                 <length>64</length>
24                                 <notnull>false</notnull>
25                         </field>
26                         <field>
27                                 <name>token_type</name>
28                                 <type>text</type>
29                                 <length>16</length>
30                                 <notnull>true</notnull>
31                         </field>
32                         <field>
33                                 <name>token_key</name>
34                                 <type>text</type>
35                                 <length>128</length>
36                                 <notnull>true</notnull>
37                         </field>
38                         <field>
39                                 <name>token_secret</name>
40                                 <type>text</type>
41                                 <length>128</length>
42                                 <notnull>true</notnull>
43                         </field>
44                         <field>
45                                 <name>token_verifier</name>
46                                 <type>text</type>
47                                 <length>128</length>
48                                 <notnull>true</notnull>
49                         </field>
50                         <field>
51                                 <name>token_callback</name>
52                                 <type>text</type>
53                                 <length>2048</length>
54                                 <notnull>true</notnull>
55                         </field>
56                         <field>
57                                 <name>token_client</name>
58                                 <type>text</type>
59                                 <length>256</length>
60                                 <notnull>true</notnull>
61                         </field>
62                         <field>
63                                 <name>token_lastuse</name>
64                                 <type>timestamp</type>
65                                 <notnull>true</notnull>
66                         </field>
67                 </declaration>
68         </table>
69
70         <table>
71                 <name>*dbprefix*grauphel_notes</name>
72                 <declaration>
73                         <field>
74                                 <name>note_id</name>
75                                 <type>integer</type>
76                                 <length>11</length>
77                                 <notnull>true</notnull>
78                                 <autoincrement>1</autoincrement>
79                                 <default>0</default>
80                         </field>
81                         <field>
82                                 <name>note_user</name>
83                                 <type>text</type>
84                                 <length>64</length>
85                                 <notnull>false</notnull>
86                         </field>
87
88                         <field>
89                                 <name>note_guid</name>
90                                 <type>text</type>
91                                 <length>128</length>
92                                 <notnull>true</notnull>
93                         </field>
94                         <field>
95                                 <name>note_last_sync_revision</name>
96                                 <type>integer</type>
97                                 <length>11</length>
98                                 <notnull>true</notnull>
99                                 <default>0</default>
100                         </field>
101
102                         <field>
103                                 <name>note_create_date</name>
104                                 <type>text</type>
105                                 <length>33</length>
106                                 <notnull>true</notnull>
107                         </field>
108                         <field>
109                                 <name>note_last_change_date</name>
110                                 <type>text</type>
111                                 <length>33</length>
112                                 <notnull>true</notnull>
113                         </field>
114                         <field>
115                                 <name>note_last_metadata_change_date</name>
116                                 <type>text</type>
117                                 <length>33</length>
118                                 <notnull>true</notnull>
119                         </field>
120
121                         <field>
122                                 <name>note_title</name>
123                                 <type>text</type>
124                                 <length>1024</length>
125                                 <notnull>true</notnull>
126                         </field>
127                         <field>
128                                 <name>note_content</name>
129                                 <type>clob</type>
130                                 <notnull>true</notnull>
131                         </field>
132                         <field>
133                                 <name>note_content_version</name>
134                                 <type>text</type>
135                                 <length>16</length>
136                                 <notnull>true</notnull>
137                         </field>
138                         <field>
139                                 <name>note_open_on_startup</name>
140                                 <type>integer</type>
141                                 <length>1</length>
142                                 <notnull>true</notnull>
143                                 <default>0</default>
144                         </field>
145                         <field>
146                                 <name>note_pinned</name>
147                                 <type>integer</type>
148                                 <length>1</length>
149                                 <notnull>true</notnull>
150                                 <default>0</default>
151                         </field>
152                         <field>
153                                 <name>note_tags</name>
154                                 <type>text</type>
155                                 <length>1024</length>
156                                 <notnull>true</notnull>
157                         </field>
158                         <field>
159                                 <name>note_x</name>
160                                 <type>integer</type>
161                                 <length>6</length>
162                                 <notnull>true</notnull>
163                                 <default>20</default>
164                         </field>
165                         <field>
166                                 <name>note_y</name>
167                                 <type>integer</type>
168                                 <length>6</length>
169                                 <notnull>true</notnull>
170                                 <default>20</default>
171                         </field>
172                         <field>
173                                 <name>note_width</name>
174                                 <type>integer</type>
175                                 <length>6</length>
176                                 <notnull>true</notnull>
177                                 <default>-1</default>
178                         </field>
179                         <field>
180                                 <name>note_height</name>
181                                 <type>integer</type>
182                                 <length>6</length>
183                                 <notnull>true</notnull>
184                                 <default>-1</default>
185                         </field>
186                         <field>
187                                 <name>note_selection_bound_position</name>
188                                 <type>integer</type>
189                                 <length>6</length>
190                                 <notnull>true</notnull>
191                                 <default>0</default>
192                         </field>
193                         <field>
194                                 <name>note_cursor_position</name>
195                                 <type>integer</type>
196                                 <length>6</length>
197                                 <notnull>true</notnull>
198                                 <default>0</default>
199                         </field>
200                 </declaration>
201         </table>
202
203         <table>
204                 <name>*dbprefix*grauphel_syncdata</name>
205                 <declaration>
206                         <field>
207                                 <name>syncdata_id</name>
208                                 <type>integer</type>
209                                 <length>11</length>
210                                 <notnull>true</notnull>
211                                 <autoincrement>1</autoincrement>
212                                 <default>0</default>
213                         </field>
214                         <field>
215                                 <name>syncdata_user</name>
216                                 <type>text</type>
217                                 <length>64</length>
218                                 <notnull>true</notnull>
219                         </field>
220                         <field>
221                                 <name>syncdata_current_sync_guid</name>
222                                 <type>text</type>
223                                 <length>64</length>
224                                 <notnull>true</notnull>
225                         </field>
226                         <field>
227                                 <name>syncdata_latest_sync_revision</name>
228                                 <type>integer</type>
229                                 <length>11</length>
230                                 <notnull>true</notnull>
231                                 <default>0</default>
232                         </field>
233                 </declaration>
234         </table>
235 </database>