Release 0.7.3
[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                 </declaration>
159         </table>
160
161          <table>
162                 <name>*dbprefix*grauphel_syncdata</name>
163                 <declaration>
164                         <field>
165                                 <name>syncdata_id</name>
166                                 <type>integer</type>
167                                 <length>11</length>
168                                 <notnull>true</notnull>
169                                 <autoincrement>1</autoincrement>
170                                 <default>0</default>
171                         </field>
172                         <field>
173                                 <name>syncdata_user</name>
174                                 <type>text</type>
175                                 <length>64</length>
176                                 <notnull>true</notnull>
177                         </field>
178                         <field>
179                                 <name>syncdata_current_sync_guid</name>
180                                 <type>text</type>
181                                 <length>64</length>
182                                 <notnull>true</notnull>
183                         </field>
184                         <field>
185                                 <name>syncdata_latest_sync_revision</name>
186                                 <type>integer</type>
187                                 <length>11</length>
188                                 <notnull>true</notnull>
189                                 <default>0</default>
190                         </field>
191                 </declaration>
192         </table>
193 </database>