source: trunk/install/dbscheme.txt @ 801

Last change on this file since 801 was 801, checked in by plg, 19 years ago
  • new feature : RSS notification feed. Feed generator is an external tool (FeedCreator class v1.7.2). New file feed.php
  • new database field : comments.validation_date (datetime). This field is required for notification feed.
  • new database field : users.feed_id (varchar(50)). users.feed_id is an alias of users.id but is much more complicated to find (50 characters, figures or letters, case sensitive) : the purpose is to keep it secret (as far as possible).
  • new database field : users.last_feed_check (datetime)
  • new database field : users.registration_date (datetime)
  • bug fixed : no need to add the (unavailable) session id to install.php in the installation form.
  • modified database field : images.date_available become more precise (date to datetime). This precision is needed for notification feed.
  • new index : comments_i1 (validation_date). Might be useful for feed queries.
  • new index : comments_i2 (image_id). Useful each time you want to have informations about an element and its associated comments.
  • version 9.11 of mysqldump outputs database field names and table names with backquote "`" (didn't find how to take them off)
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 13.2 KB
Line 
1
2table:caddie
3table:categories
4table:comments
5table:config
6table:favorites
7table:group_access
8table:groups
9table:history
10table:image_category
11table:images
12table:rate
13table:sessions
14table:sites
15table:user_access
16table:user_forbidden
17table:user_group
18table:users
19table:waiting
20
21column:user_id                   table:caddie         type:smallint                 nullable:N length:5   signed:Y
22column:element_id                table:caddie         type:mediumint                nullable:N length:8   signed:Y
23column:id                        table:categories     type:smallint                 nullable:N length:5   signed:N
24column:date_last                 table:categories     type:datetime                 nullable:Y
25column:nb_images                 table:categories     type:mediumint                nullable:N length:8   signed:N
26column:name                      table:categories     type:varchar                  nullable:N length:255 binary:N
27column:id_uppercat               table:categories     type:smallint                 nullable:Y length:5   signed:N
28column:comment                   table:categories     type:text                     nullable:Y
29column:dir                       table:categories     type:varchar                  nullable:Y length:255 binary:N
30column:rank                      table:categories     type:tinyint                  nullable:Y length:3   signed:N
31column:status                    table:categories     type:enum('public','private') nullable:N
32column:site_id                   table:categories     type:tinyint                  nullable:Y length:4   signed:N
33column:visible                   table:categories     type:enum('true','false')     nullable:N
34column:uploadable                table:categories     type:enum('true','false')     nullable:N
35column:representative_picture_id table:categories     type:mediumint                nullable:Y length:8   signed:N
36column:uppercats                 table:categories     type:varchar                  nullable:N length:255 binary:N
37column:commentable               table:categories     type:enum('true','false')     nullable:N
38column:global_rank               table:categories     type:varchar                  nullable:Y length:255 binary:N
39column:id                        table:comments       type:int                      nullable:N length:11  signed:N
40column:image_id                  table:comments       type:mediumint                nullable:N length:8   signed:N
41column:date                      table:comments       type:datetime                 nullable:N
42column:author                    table:comments       type:varchar                  nullable:Y length:255 binary:N
43column:content                   table:comments       type:longtext                 nullable:Y
44column:validated                 table:comments       type:enum('true','false')     nullable:N
45column:validation_date           table:comments       type:datetime                 nullable:Y
46column:param                     table:config         type:varchar                  nullable:N length:40  binary:N
47column:value                     table:config         type:varchar                  nullable:Y length:255 binary:N
48column:comment                   table:config         type:varchar                  nullable:Y length:255 binary:N
49column:user_id                   table:favorites      type:smallint                 nullable:N length:5   signed:N
50column:image_id                  table:favorites      type:mediumint                nullable:N length:8   signed:N
51column:group_id                  table:group_access   type:smallint                 nullable:N length:5   signed:N
52column:cat_id                    table:group_access   type:smallint                 nullable:N length:5   signed:N
53column:id                        table:groups         type:smallint                 nullable:N length:5   signed:N
54column:name                      table:groups         type:varchar                  nullable:N length:255 binary:N
55column:date                      table:history        type:datetime                 nullable:N
56column:login                     table:history        type:varchar                  nullable:Y length:15  binary:N
57column:IP                        table:history        type:varchar                  nullable:N length:50  binary:N
58column:category                  table:history        type:varchar                  nullable:Y length:150 binary:N
59column:file                      table:history        type:varchar                  nullable:Y length:50  binary:N
60column:picture                   table:history        type:varchar                  nullable:Y length:150 binary:N
61column:image_id                  table:image_category type:mediumint                nullable:N length:8   signed:N
62column:category_id               table:image_category type:smallint                 nullable:N length:5   signed:N
63column:id                        table:images         type:mediumint                nullable:N length:8   signed:N
64column:file                      table:images         type:varchar                  nullable:N length:255 binary:N
65column:date_available            table:images         type:datetime                 nullable:N
66column:date_creation             table:images         type:date                     nullable:Y
67column:tn_ext                    table:images         type:varchar                  nullable:Y length:4   binary:N
68column:name                      table:images         type:varchar                  nullable:Y length:255 binary:N
69column:comment                   table:images         type:text                     nullable:Y
70column:author                    table:images         type:varchar                  nullable:Y length:255 binary:N
71column:hit                       table:images         type:int                      nullable:N length:10  signed:N
72column:filesize                  table:images         type:mediumint                nullable:Y length:9   signed:N
73column:width                     table:images         type:smallint                 nullable:Y length:9   signed:N
74column:height                    table:images         type:smallint                 nullable:Y length:9   signed:N
75column:keywords                  table:images         type:varchar                  nullable:Y length:255 binary:N
76column:storage_category_id       table:images         type:smallint                 nullable:Y length:5   signed:N
77column:representative_ext        table:images         type:varchar                  nullable:Y length:4   binary:N
78column:date_metadata_update      table:images         type:date                     nullable:Y
79column:average_rate              table:images         type:float                    nullable:Y length:5,2 signed:N
80column:path                      table:images         type:varchar                  nullable:N length:255 binary:N
81column:user_id                   table:rate           type:smallint                 nullable:N length:5   signed:N
82column:element_id                table:rate           type:mediumint                nullable:N length:8   signed:N
83column:rate                      table:rate           type:tinyint                  nullable:N length:2   signed:N
84column:id                        table:sessions       type:varchar                  nullable:N length:255 binary:Y
85column:user_id                   table:sessions       type:smallint                 nullable:N length:5   signed:N
86column:expiration                table:sessions       type:datetime                 nullable:N
87column:id                        table:sites          type:tinyint                  nullable:N length:4   signed:Y
88column:galleries_url             table:sites          type:varchar                  nullable:N length:255 binary:N
89column:user_id                   table:user_access    type:smallint                 nullable:N length:5   signed:N
90column:cat_id                    table:user_access    type:smallint                 nullable:N length:5   signed:N
91column:user_id                   table:user_forbidden type:smallint                 nullable:N length:5   signed:N
92column:need_update               table:user_forbidden type:enum('true','false')     nullable:N
93column:forbidden_categories      table:user_forbidden type:text                     nullable:Y
94column:user_id                   table:user_group     type:smallint                 nullable:N length:5   signed:N
95column:group_id                  table:user_group     type:smallint                 nullable:N length:5   signed:N
96column:id                        table:users          type:smallint                 nullable:N length:5   signed:N
97column:username                  table:users          type:varchar                  nullable:N length:20  binary:Y
98column:password                  table:users          type:varchar                  nullable:Y length:32  binary:N
99column:mail_address              table:users          type:varchar                  nullable:Y length:255 binary:N
100column:nb_image_line             table:users          type:tinyint                  nullable:N length:1   signed:N
101column:nb_line_page              table:users          type:tinyint                  nullable:N length:3   signed:N
102column:status                    table:users          type:enum('admin','guest')    nullable:N
103column:language                  table:users          type:varchar                  nullable:N length:50  binary:N
104column:maxwidth                  table:users          type:smallint                 nullable:Y length:6   signed:Y
105column:maxheight                 table:users          type:smallint                 nullable:Y length:6   signed:Y
106column:expand                    table:users          type:enum('true','false')     nullable:N
107column:show_nb_comments          table:users          type:enum('true','false')     nullable:N
108column:recent_period             table:users          type:tinyint                  nullable:N length:3   signed:N
109column:template                  table:users          type:varchar                  nullable:N length:255 binary:N
110column:last_feed_check           table:users          type:datetime                 nullable:Y
111column:feed_id                   table:users          type:varchar                  nullable:Y length:50  binary:Y
112column:registration_date         table:users          type:datetime                 nullable:N
113column:id                        table:waiting        type:int                      nullable:N length:10  signed:N
114column:storage_category_id       table:waiting        type:smallint                 nullable:N length:5   signed:N
115column:file                      table:waiting        type:varchar                  nullable:N length:255 binary:N
116column:username                  table:waiting        type:varchar                  nullable:N length:255 binary:N
117column:mail_address              table:waiting        type:varchar                  nullable:N length:255 binary:N
118column:date                      table:waiting        type:int                      nullable:N length:10  signed:N
119column:tn_ext                    table:waiting        type:char                     nullable:Y length:3   binary:N
120column:validated                 table:waiting        type:enum('true','false')     nullable:N
121column:infos                     table:waiting        type:text                     nullable:Y
122
123PK:caddie_pk         table:caddie         column:user_id
124PK:caddie_pk         table:caddie         column:element_id
125PK:categories_pk     table:categories     column:id
126PK:comments_pk       table:comments       column:id
127PK:config_pk         table:config         column:param
128PK:favorites_pk      table:favorites      column:user_id
129PK:favorites_pk      table:favorites      column:image_id
130PK:group_access_pk   table:group_access   column:group_id
131PK:group_access_pk   table:group_access   column:cat_id
132PK:groups_pk         table:groups         column:id
133PK:image_category_pk table:image_category column:image_id
134PK:image_category_pk table:image_category column:category_id
135PK:images_pk         table:images         column:id
136PK:rate_pk           table:rate           column:user_id
137PK:rate_pk           table:rate           column:element_id
138PK:sessions_pk       table:sessions       column:id
139PK:sites_pk          table:sites          column:id
140PK:user_access_pk    table:user_access    column:user_id
141PK:user_access_pk    table:user_access    column:cat_id
142PK:user_forbidden_pk table:user_forbidden column:user_id
143PK:user_group_pk     table:user_group     column:group_id
144PK:user_group_pk     table:user_group     column:user_id
145PK:users_pk          table:users          column:id
146PK:waiting_pk        table:waiting        column:id
147
148index:categories_i2     table:categories     column:id_uppercat
149index:comments_i2       table:comments       column:validation_date
150index:comments_i1       table:comments       column:image_id
151index:history_i1        table:history        column:date
152index:image_category_i1 table:image_category column:image_id
153index:image_category_i2 table:image_category column:category_id
154index:images_i2         table:images         column:date_available
155index:images_i1         table:images         column:storage_category_id
156index:images_i3         table:images         column:average_rate
157index:images_i4         table:images         column:hit
158index:images_i5         table:images         column:date_creation
159index:sites_ui1         table:sites          column:galleries_url
160index:users_ui1         table:users          column:username
Note: See TracBrowser for help on using the repository browser.