add DELETE /token/$username/$tokenKey API
[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                         <field>
55                                 <name>token_client</name>
56                                 <type>text</type>
57                                 <notnull>true</notnull>
58                                 <length>256</length>
59                         </field>
60                         <field>
61                                 <name>token_lastuse</name>
62                                 <type>timestamp</type>
63                                 <notnull>true</notnull>
64                         </field>
65                 </declaration>
66         </table>
67
68         <table>
69                 <name>*dbprefix*grauphel_notes</name>
70                 <declaration>
71                         <field>
72                                 <name>note_id</name>
73                                 <type>integer</type>
74                                 <default>0</default>
75                                 <notnull>true</notnull>
76                                 <autoincrement>1</autoincrement>
77                                 <length>11</length>
78                         </field>
79                         <field>
80                                 <name>note_user</name>
81                                 <type>text</type>
82                                 <notnull>false</notnull>
83                                 <length>64</length>
84                         </field>
85
86                         <field>
87                                 <name>note_guid</name>
88                                 <type>text</type>
89                                 <notnull>true</notnull>
90                                 <length>128</length>
91                         </field>
92                         <field>
93                                 <name>note_last_sync_revision</name>
94                                 <type>integer</type>
95                                 <default>0</default>
96                                 <notnull>true</notnull>
97                                 <length>11</length>
98                         </field>
99
100                         <field>
101                                 <name>note_create_date</name>
102                                 <type>text</type>
103                                 <notnull>true</notnull>
104                                 <length>33</length>
105                         </field>
106                         <field>
107                                 <name>note_last_change_date</name>
108                                 <type>text</type>
109                                 <notnull>true</notnull>
110                                 <length>33</length>
111                         </field>
112                         <field>
113                                 <name>note_last_metadata_change_date</name>
114                                 <type>text</type>
115                                 <notnull>true</notnull>
116                                 <length>33</length>
117                         </field>
118
119                         <field>
120                                 <name>note_title</name>
121                                 <type>text</type>
122                                 <notnull>true</notnull>
123                                 <length>1024</length>
124                         </field>
125                         <field>
126                                 <name>note_content</name>
127                                 <type>clob</type>
128                                 <notnull>true</notnull>
129                         </field>
130                         <field>
131                                 <name>note_content_version</name>
132                                 <type>text</type>
133                                 <notnull>true</notnull>
134                                 <length>16</length>
135                         </field>
136                         <field>
137                                 <name>note_open_on_startup</name>
138                                 <type>integer</type>
139                                 <default>0</default>
140                                 <notnull>true</notnull>
141                                 <length>1</length>
142                         </field>
143                         <field>
144                                 <name>note_pinned</name>
145                                 <type>integer</type>
146                                 <default>0</default>
147                                 <notnull>true</notnull>
148                                 <length>1</length>
149                         </field>
150                         <field>
151                                 <name>note_tags</name>
152                                 <type>text</type>
153                                 <notnull>true</notnull>
154                                 <length>1024</length>
155                         </field>
156                 </declaration>
157         </table>
158
159          <table>
160                 <name>*dbprefix*grauphel_syncdata</name>
161                 <declaration>
162                         <field>
163                                 <name>syncdata_id</name>
164                                 <type>integer</type>
165                                 <default>0</default>
166                                 <notnull>true</notnull>
167                                 <autoincrement>1</autoincrement>
168                                 <length>11</length>
169                         </field>
170                         <field>
171                                 <name>syncdata_user</name>
172                                 <type>text</type>
173                                 <notnull>true</notnull>
174                                 <length>64</length>
175                         </field>
176                         <field>
177                                 <name>syncdata_current_sync_guid</name>
178                                 <type>text</type>
179                                 <notnull>true</notnull>
180                                 <length>64</length>
181                         </field>
182                         <field>
183                                 <name>syncdata_latest_sync_revision</name>
184                                 <type>integer</type>
185                                 <default>0</default>
186                                 <notnull>true</notnull>
187                                 <length>11</length>
188                         </field>
189                 </declaration>
190         </table>
191 </database>