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