| 175 | |
| 176 | == The Model == |
| 177 | |
| 178 | To summarize the above discussion, here's what could be the new model. |
| 179 | |
| 180 | === Minimal Model === |
| 181 | - surrogate keys for all resources |
| 182 | - only text fields |
| 183 | |
| 184 | |
| 185 | {{{ |
| 186 | #!div style="width: 30%; float: left" |
| 187 | |
| 188 | ==== Schema ==== |
| 189 | |
| 190 | '''resource_schema''' |
| 191 | || ''realm'' || ''prop'' || ''name'' || ''value'' || |
| 192 | |
| 193 | '''resource_prop''' |
| 194 | || ''id'' || ''name'' || ''value'' || |
| 195 | |
| 196 | '''resource_revprop''' |
| 197 | || ''changeid'' || ''name'' || ''value'' || |
| 198 | |
| 199 | '''resource_change''' |
| 200 | || ''id'' || ''changeid'' || ''name'' || ''value'' || |
| 201 | }}} |
| 202 | {{{ |
| 203 | #!div style="width: 60%; border: 2px dotted #ddd; padding: 0 0 1em 3em ; float: left;" |
| 204 | |
| 205 | ==== Example Dataset ==== |
| 206 | |
| 207 | '''resource_schema''' |
| 208 | || ''realm'' || ''prop'' || ''name'' || ''value'' || |
| 209 | || ticket || summary || type || text || |
| 210 | || ticket || description || type || wiki|| |
| 211 | || ticket || reporter || type || text || |
| 212 | |
| 213 | '''resource_prop''' |
| 214 | || ''id'' || ''name'' || ''value'' || |
| 215 | || 0 || id || 130 || |
| 216 | || 0 || summary ||Multiple Project Support|| |
| 217 | || 0 ||description||One day... || |
| 218 | || 0 || reporter || joe || |
| 219 | |
| 220 | '''resource_revprop''' |
| 221 | || ''changeid'' || ''name'' || ''value'' || |
| 222 | || 1 || author || joe || |
| 223 | || 1 || date ||5 years ago|| |
| 224 | || 2 || author || joe || |
| 225 | || 2 || date ||2 years ago|| |
| 226 | || 2 || comment || come on...|| |
| 227 | || 3 || author || cboos || |
| 228 | || 3 || date ||1 year ago || |
| 229 | || 3 || comment || sure... || |
| 230 | |
| 231 | '''resource_change''' |
| 232 | || ''id'' || ''changeid'' || ''name'' || ''value'' || |
| 233 | || 0 || 1 || id ||130|| |
| 234 | || 0 || 1 || summary ||Multiple Project Support|| |
| 235 | || 0 || 1 ||description||Should be easy...|| |
| 236 | || 0 || 1 || reporter ||joe|| |
| 237 | || 0 || 2 ||description||Should be easy... Redmine has it!|| |
| 238 | || 0 || 3 ||description||One day...|| |
| 239 | }}} |
| 240 | |
| 241 | [[html(<br style="clear: both" />)]] |