source: trunk/install/dbscheme.txt @ 602

Last change on this file since 602 was 602, checked in by plg, 19 years ago
  • admin/cat_options page added : manage options for the whole categories tree (uploadable, commentable). status and visible will be soon added
  • admin.php : $conf_link var to avoid lines longer than 79 characters
  • config.upload_available configuration parameter disappear : it's simpler to manage with cat_options
  • config.show_comments idem : new column categories.commentable, each categories can be commentable or not
  • categories.site_id becomes a nullable column : a virtual category does belong to no site
  • function display_select_categories has a new argument : $CSS_classes array to optionnaly assign a CSS class to each category in the select field
  • added informations in include/config.inc.php for setting default value of :
  • categories.visible
  • categories.status
  • categories.uploadable
  • categories.commentable
  • 2 new indexes images_i3(average_rate) and images_i4(hit) : optimizes best rated and most visited categories
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 11.9 KB
Line 
1
2table:categories
3table:comments
4table:config
5table:favorites
6table:group_access
7table:groups
8table:history
9table:image_category
10table:images
11table:rate
12table:sessions
13table:sites
14table:user_access
15table:user_group
16table:users
17table:waiting
18
19column:id                        table:categories     type:smallint                 nullable:N length:5   signed:N
20column:date_last                 table:categories     type:date                     nullable:Y
21column:nb_images                 table:categories     type:mediumint                nullable:N length:8   signed:N
22column:name                      table:categories     type:varchar                  nullable:N length:255 binary:N
23column:id_uppercat               table:categories     type:smallint                 nullable:Y length:5   signed:N
24column:comment                   table:categories     type:text                     nullable:Y
25column:dir                       table:categories     type:varchar                  nullable:Y length:255 binary:N
26column:rank                      table:categories     type:tinyint                  nullable:Y length:3   signed:N
27column:status                    table:categories     type:enum('public','private') nullable:N
28column:site_id                   table:categories     type:tinyint                  nullable:Y length:4   signed:N
29column:visible                   table:categories     type:enum('true','false')     nullable:N
30column:uploadable                table:categories     type:enum('true','false')     nullable:N
31column:representative_picture_id table:categories     type:mediumint                nullable:Y length:8   signed:N
32column:uppercats                 table:categories     type:varchar                  nullable:N length:255 binary:N
33column:commentable               table:categories     type:enum('true','false')     nullable:N
34column:id                        table:comments       type:int                      nullable:N length:11  signed:N
35column:image_id                  table:comments       type:mediumint                nullable:N length:8   signed:N
36column:date                      table:comments       type:datetime                 nullable:N
37column:author                    table:comments       type:varchar                  nullable:Y length:255 binary:N
38column:content                   table:comments       type:longtext                 nullable:Y
39column:validated                 table:comments       type:enum('true','false')     nullable:N
40column:param                     table:config         type:varchar                  nullable:N length:40  binary:N
41column:value                     table:config         type:varchar                  nullable:Y length:255 binary:N
42column:comment                   table:config         type:varchar                  nullable:Y length:255 binary:N
43column:user_id                   table:favorites      type:smallint                 nullable:N length:5   signed:N
44column:image_id                  table:favorites      type:mediumint                nullable:N length:8   signed:N
45column:group_id                  table:group_access   type:smallint                 nullable:N length:5   signed:N
46column:cat_id                    table:group_access   type:smallint                 nullable:N length:5   signed:N
47column:id                        table:groups         type:smallint                 nullable:N length:5   signed:N
48column:name                      table:groups         type:varchar                  nullable:N length:255 binary:N
49column:date                      table:history        type:datetime                 nullable:N
50column:login                     table:history        type:varchar                  nullable:Y length:15  binary:N
51column:IP                        table:history        type:varchar                  nullable:N length:50  binary:N
52column:category                  table:history        type:varchar                  nullable:Y length:150 binary:N
53column:file                      table:history        type:varchar                  nullable:Y length:50  binary:N
54column:picture                   table:history        type:varchar                  nullable:Y length:150 binary:N
55column:image_id                  table:image_category type:mediumint                nullable:N length:8   signed:N
56column:category_id               table:image_category type:smallint                 nullable:N length:5   signed:N
57column:id                        table:images         type:mediumint                nullable:N length:8   signed:N
58column:file                      table:images         type:varchar                  nullable:N length:255 binary:N
59column:date_available            table:images         type:date                     nullable:N
60column:date_creation             table:images         type:date                     nullable:Y
61column:tn_ext                    table:images         type:varchar                  nullable:Y length:4   binary:N
62column:name                      table:images         type:varchar                  nullable:Y length:255 binary:N
63column:comment                   table:images         type:text                     nullable:Y
64column:author                    table:images         type:varchar                  nullable:Y length:255 binary:N
65column:hit                       table:images         type:int                      nullable:N length:10  signed:N
66column:filesize                  table:images         type:mediumint                nullable:Y length:9   signed:N
67column:width                     table:images         type:smallint                 nullable:Y length:9   signed:N
68column:height                    table:images         type:smallint                 nullable:Y length:9   signed:N
69column:keywords                  table:images         type:varchar                  nullable:Y length:255 binary:N
70column:storage_category_id       table:images         type:smallint                 nullable:Y length:5   signed:N
71column:representative_ext        table:images         type:varchar                  nullable:Y length:4   binary:N
72column:date_metadata_update      table:images         type:date                     nullable:Y
73column:average_rate              table:images         type:float                    nullable:Y length:5,2 signed:N
74column:user_id                   table:rate           type:smallint                 nullable:N length:5   signed:N
75column:element_id                table:rate           type:mediumint                nullable:N length:8   signed:N
76column:rate                      table:rate           type:tinyint                  nullable:N length:2   signed:N
77column:id                        table:sessions       type:varchar                  nullable:N length:255 binary:Y
78column:user_id                   table:sessions       type:smallint                 nullable:N length:5   signed:N
79column:expiration                table:sessions       type:int                      nullable:N length:10  signed:N
80column:ip                        table:sessions       type:varchar                  nullable:N length:255 binary:N
81column:id                        table:sites          type:tinyint                  nullable:N length:4   signed:Y
82column:galleries_url             table:sites          type:varchar                  nullable:N length:255 binary:N
83column:user_id                   table:user_access    type:smallint                 nullable:N length:5   signed:N
84column:cat_id                    table:user_access    type:smallint                 nullable:N length:5   signed:N
85column:user_id                   table:user_group     type:smallint                 nullable:N length:5   signed:N
86column:group_id                  table:user_group     type:smallint                 nullable:N length:5   signed:N
87column:id                        table:users          type:smallint                 nullable:N length:5   signed:N
88column:username                  table:users          type:varchar                  nullable:N length:20  binary:Y
89column:password                  table:users          type:varchar                  nullable:N length:255 binary:N
90column:mail_address              table:users          type:varchar                  nullable:Y length:255 binary:N
91column:nb_image_line             table:users          type:tinyint                  nullable:N length:1   signed:N
92column:nb_line_page              table:users          type:tinyint                  nullable:N length:3   signed:N
93column:status                    table:users          type:enum('admin','guest')    nullable:N
94column:language                  table:users          type:varchar                  nullable:N length:50  binary:N
95column:maxwidth                  table:users          type:smallint                 nullable:Y length:6   signed:Y
96column:maxheight                 table:users          type:smallint                 nullable:Y length:6   signed:Y
97column:expand                    table:users          type:enum('true','false')     nullable:N
98column:show_nb_comments          table:users          type:enum('true','false')     nullable:N
99column:recent_period             table:users          type:tinyint                  nullable:N length:3   signed:N
100column:template                  table:users          type:varchar                  nullable:N length:255 binary:N
101column:forbidden_categories      table:users          type:text                     nullable:Y
102column:id                        table:waiting        type:int                      nullable:N length:10  signed:N
103column:storage_category_id       table:waiting        type:smallint                 nullable:N length:5   signed:N
104column:file                      table:waiting        type:varchar                  nullable:N length:255 binary:N
105column:username                  table:waiting        type:varchar                  nullable:N length:255 binary:N
106column:mail_address              table:waiting        type:varchar                  nullable:N length:255 binary:N
107column:date                      table:waiting        type:int                      nullable:N length:10  signed:N
108column:tn_ext                    table:waiting        type:char                     nullable:Y length:3   binary:N
109column:validated                 table:waiting        type:enum('true','false')     nullable:N
110column:infos                     table:waiting        type:text                     nullable:Y
111
112PK:categories_pk     table:categories     column:id
113PK:comments_pk       table:comments       column:id
114PK:config_pk         table:config         column:param
115PK:favorites_pk      table:favorites      column:user_id
116PK:favorites_pk      table:favorites      column:image_id
117PK:group_access_pk   table:group_access   column:group_id
118PK:group_access_pk   table:group_access   column:cat_id
119PK:groups_pk         table:groups         column:id
120PK:history_pk        table:history        column:date
121PK:image_category_pk table:image_category column:image_id
122PK:image_category_pk table:image_category column:category_id
123PK:images_pk         table:images         column:id
124PK:rate_pk           table:rate           column:user_id
125PK:rate_pk           table:rate           column:element_id
126PK:sessions_pk       table:sessions       column:id
127PK:sites_pk          table:sites          column:id
128PK:user_access_pk    table:user_access    column:user_id
129PK:user_access_pk    table:user_access    column:cat_id
130PK:user_group_pk     table:user_group     column:group_id
131PK:user_group_pk     table:user_group     column:user_id
132PK:users_pk          table:users          column:id
133PK:waiting_pk        table:waiting        column:id
134
135index:categories_i2     table:categories     column:id_uppercat
136index:image_category_i1 table:image_category column:image_id
137index:image_category_i2 table:image_category column:category_id
138index:images_i2         table:images         column:date_available
139index:images_i1         table:images         column:storage_category_id
140index:images_i3         table:images         column:average_rate
141index:images_i4         table:images         column:hit
142index:sites_ui1         table:sites          column:galleries_url
143index:users_ui1         table:users          column:username
Note: See TracBrowser for help on using the repository browser.