add LICENSE file
[grauphel.git] / appinfo / database.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <database>
3  <!-- http://www.wiltonhotel.com/_ext/pear/docs/MDB2/docs/xml_schema_documentation.html -->
4          <name>*dbname*</name>
5          <create>true</create>
6          <overwrite>false</overwrite>
7          <charset>utf8</charset>
8          <table>
9                 <name>*dbprefix*grauphel_oauth_tokens</name>
10                 <declaration>
11                         <field>
12                                 <name>token_id</name>
13                                 <type>integer</type>
14                                 <default>0</default>
15                                 <notnull>true</notnull>
16                                 <autoincrement>1</autoincrement>
17                                 <length>11</length>
18                         </field>
19                         <field>
20                                 <name>token_user</name>
21                                 <type>text</type>
22                                 <notnull>false</notnull>
23                                 <length>64</length>
24                         </field>
25                         <field>
26                                 <name>token_type</name>
27                                 <type>text</type>
28                                 <notnull>true</notnull>
29                                 <length>16</length>
30                         </field>
31                         <field>
32                                 <name>token_key</name>
33                                 <type>text</type>
34                                 <notnull>true</notnull>
35                                 <length>128</length>
36                         </field>
37                         <field>
38                                 <name>token_secret</name>
39                                 <type>text</type>
40                                 <notnull>true</notnull>
41                                 <length>128</length>
42                         </field>
43                         <field>
44                                 <name>token_verifier</name>
45                                 <type>text</type>
46                                 <notnull>true</notnull>
47                                 <length>128</length>
48                         </field>
49                         <field>
50                                 <name>token_callback</name>
51                                 <type>text</type>
52                                 <notnull>true</notnull>
53                                 <length>2048</length>
54                         </field>
55                         <field>
56                                 <name>token_client</name>
57                                 <type>text</type>
58                                 <notnull>true</notnull>
59                                 <length>256</length>
60                         </field>
61                         <field>
62                                 <name>token_lastuse</name>
63                                 <type>timestamp</type>
64                                 <notnull>true</notnull>
65                         </field>
66                 </declaration>
67         </table>
68
69         <table>
70                 <name>*dbprefix*grauphel_notes</name>
71                 <declaration>
72                         <field>
73                                 <name>note_id</name>
74                                 <type>integer</type>
75                                 <default>0</default>
76                                 <notnull>true</notnull>
77                                 <autoincrement>1</autoincrement>
78                                 <length>11</length>
79                         </field>
80                         <field>
81                                 <name>note_user</name>
82                                 <type>text</type>
83                                 <notnull>false</notnull>
84                                 <length>64</length>
85                         </field>
86
87                         <field>
88                                 <name>note_guid</name>
89                                 <type>text</type>
90                                 <notnull>true</notnull>
91                                 <length>128</length>
92                         </field>
93                         <field>
94                                 <name>note_last_sync_revision</name>
95                                 <type>integer</type>
96                                 <default>0</default>
97                                 <notnull>true</notnull>
98                                 <length>11</length>
99                         </field>
100
101                         <field>
102                                 <name>note_create_date</name>
103                                 <type>text</type>
104                                 <notnull>true</notnull>
105                                 <length>33</length>
106                         </field>
107                         <field>
108                                 <name>note_last_change_date</name>
109                                 <type>text</type>
110                                 <notnull>true</notnull>
111                                 <length>33</length>
112                         </field>
113                         <field>
114                                 <name>note_last_metadata_change_date</name>
115                                 <type>text</type>
116                                 <notnull>true</notnull>
117                                 <length>33</length>
118                         </field>
119
120                         <field>
121                                 <name>note_title</name>
122                                 <type>text</type>
123                                 <notnull>true</notnull>
124                                 <length>1024</length>
125                         </field>
126                         <field>
127                                 <name>note_content</name>
128                                 <type>clob</type>
129                                 <notnull>true</notnull>
130                         </field>
131                         <field>
132                                 <name>note_content_version</name>
133                                 <type>text</type>
134                                 <notnull>true</notnull>
135                                 <length>16</length>
136                         </field>
137                         <field>
138                                 <name>note_open_on_startup</name>
139                                 <type>integer</type>
140                                 <default>0</default>
141                                 <notnull>true</notnull>
142                                 <length>1</length>
143                         </field>
144                         <field>
145                                 <name>note_pinned</name>
146                                 <type>integer</type>
147                                 <default>0</default>
148                                 <notnull>true</notnull>
149                                 <length>1</length>
150                         </field>
151                         <field>
152                                 <name>note_tags</name>
153                                 <type>text</type>
154                                 <notnull>true</notnull>
155                                 <length>1024</length>
156                         </field>
157                 </declaration>
158         </table>
159
160          <table>
161                 <name>*dbprefix*grauphel_syncdata</name>
162                 <declaration>
163                         <field>
164                                 <name>syncdata_id</name>
165                                 <type>integer</type>
166                                 <default>0</default>
167                                 <notnull>true</notnull>
168                                 <autoincrement>1</autoincrement>
169                                 <length>11</length>
170                         </field>
171                         <field>
172                                 <name>syncdata_user</name>
173                                 <type>text</type>
174                                 <notnull>true</notnull>
175                                 <length>64</length>
176                         </field>
177                         <field>
178                                 <name>syncdata_current_sync_guid</name>
179                                 <type>text</type>
180                                 <notnull>true</notnull>
181                                 <length>64</length>
182                         </field>
183                         <field>
184                                 <name>syncdata_latest_sync_revision</name>
185                                 <type>integer</type>
186                                 <default>0</default>
187                                 <notnull>true</notnull>
188                                 <length>11</length>
189                         </field>
190                 </declaration>
191         </table>
192 </database>