source: branches/1.4/install/dbscheme.txt @ 9743

Last change on this file since 9743 was 648, checked in by plg, 20 years ago
  • new table user_forbidden {user_id,need_update,forbidden_categories} and deletion of field users.forbidden_categories
  • new function calculate_permissions to update table user_forbidden when needed
  • simplification of include/user.inc.php
  • in footer of each page, use "-" instead of "::" to separate page information
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 12.4 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_forbidden
16table:user_group
17table:users
18table:waiting
19
20column:id                        table:categories     type:smallint                 nullable:N length:5   signed:N
21column:date_last                 table:categories     type:date                     nullable:Y
22column:nb_images                 table:categories     type:mediumint                nullable:N length:8   signed:N
23column:name                      table:categories     type:varchar                  nullable:N length:255 binary:N
24column:id_uppercat               table:categories     type:smallint                 nullable:Y length:5   signed:N
25column:comment                   table:categories     type:text                     nullable:Y
26column:dir                       table:categories     type:varchar                  nullable:Y length:255 binary:N
27column:rank                      table:categories     type:tinyint                  nullable:Y length:3   signed:N
28column:status                    table:categories     type:enum('public','private') nullable:N
29column:site_id                   table:categories     type:tinyint                  nullable:Y length:4   signed:N
30column:visible                   table:categories     type:enum('true','false')     nullable:N
31column:uploadable                table:categories     type:enum('true','false')     nullable:N
32column:representative_picture_id table:categories     type:mediumint                nullable:Y length:8   signed:N
33column:uppercats                 table:categories     type:varchar                  nullable:N length:255 binary:N
34column:commentable               table:categories     type:enum('true','false')     nullable:N
35column:global_rank               table:categories     type:varchar                  nullable:Y length:255 binary:N
36column:id                        table:comments       type:int                      nullable:N length:11  signed:N
37column:image_id                  table:comments       type:mediumint                nullable:N length:8   signed:N
38column:date                      table:comments       type:datetime                 nullable:N
39column:author                    table:comments       type:varchar                  nullable:Y length:255 binary:N
40column:content                   table:comments       type:longtext                 nullable:Y
41column:validated                 table:comments       type:enum('true','false')     nullable:N
42column:param                     table:config         type:varchar                  nullable:N length:40  binary:N
43column:value                     table:config         type:varchar                  nullable:Y length:255 binary:N
44column:comment                   table:config         type:varchar                  nullable:Y length:255 binary:N
45column:user_id                   table:favorites      type:smallint                 nullable:N length:5   signed:N
46column:image_id                  table:favorites      type:mediumint                nullable:N length:8   signed:N
47column:group_id                  table:group_access   type:smallint                 nullable:N length:5   signed:N
48column:cat_id                    table:group_access   type:smallint                 nullable:N length:5   signed:N
49column:id                        table:groups         type:smallint                 nullable:N length:5   signed:N
50column:name                      table:groups         type:varchar                  nullable:N length:255 binary:N
51column:date                      table:history        type:datetime                 nullable:N
52column:login                     table:history        type:varchar                  nullable:Y length:15  binary:N
53column:IP                        table:history        type:varchar                  nullable:N length:50  binary:N
54column:category                  table:history        type:varchar                  nullable:Y length:150 binary:N
55column:file                      table:history        type:varchar                  nullable:Y length:50  binary:N
56column:picture                   table:history        type:varchar                  nullable:Y length:150 binary:N
57column:image_id                  table:image_category type:mediumint                nullable:N length:8   signed:N
58column:category_id               table:image_category type:smallint                 nullable:N length:5   signed:N
59column:id                        table:images         type:mediumint                nullable:N length:8   signed:N
60column:file                      table:images         type:varchar                  nullable:N length:255 binary:N
61column:date_available            table:images         type:date                     nullable:N
62column:date_creation             table:images         type:date                     nullable:Y
63column:tn_ext                    table:images         type:varchar                  nullable:Y length:4   binary:N
64column:name                      table:images         type:varchar                  nullable:Y length:255 binary:N
65column:comment                   table:images         type:text                     nullable:Y
66column:author                    table:images         type:varchar                  nullable:Y length:255 binary:N
67column:hit                       table:images         type:int                      nullable:N length:10  signed:N
68column:filesize                  table:images         type:mediumint                nullable:Y length:9   signed:N
69column:width                     table:images         type:smallint                 nullable:Y length:9   signed:N
70column:height                    table:images         type:smallint                 nullable:Y length:9   signed:N
71column:keywords                  table:images         type:varchar                  nullable:Y length:255 binary:N
72column:storage_category_id       table:images         type:smallint                 nullable:Y length:5   signed:N
73column:representative_ext        table:images         type:varchar                  nullable:Y length:4   binary:N
74column:date_metadata_update      table:images         type:date                     nullable:Y
75column:average_rate              table:images         type:float                    nullable:Y length:5,2 signed:N
76column:path                      table:images         type:varchar                  nullable:N length:255 binary:N
77column:user_id                   table:rate           type:smallint                 nullable:N length:5   signed:N
78column:element_id                table:rate           type:mediumint                nullable:N length:8   signed:N
79column:rate                      table:rate           type:tinyint                  nullable:N length:2   signed:N
80column:id                        table:sessions       type:varchar                  nullable:N length:255 binary:Y
81column:user_id                   table:sessions       type:smallint                 nullable:N length:5   signed:N
82column:expiration                table:sessions       type:datetime                 nullable:N
83column:id                        table:sites          type:tinyint                  nullable:N length:4   signed:Y
84column:galleries_url             table:sites          type:varchar                  nullable:N length:255 binary:N
85column:user_id                   table:user_access    type:smallint                 nullable:N length:5   signed:N
86column:cat_id                    table:user_access    type:smallint                 nullable:N length:5   signed:N
87column:user_id                   table:user_forbidden type:smallint                 nullable:N length:5   signed:N
88column:need_update               table:user_forbidden type:enum('true','false')     nullable:N
89column:forbidden_categories      table:user_forbidden type:text                     nullable:Y
90column:user_id                   table:user_group     type:smallint                 nullable:N length:5   signed:N
91column:group_id                  table:user_group     type:smallint                 nullable:N length:5   signed:N
92column:id                        table:users          type:smallint                 nullable:N length:5   signed:N
93column:username                  table:users          type:varchar                  nullable:N length:20  binary:Y
94column:password                  table:users          type:varchar                  nullable:N length:255 binary:N
95column:mail_address              table:users          type:varchar                  nullable:Y length:255 binary:N
96column:nb_image_line             table:users          type:tinyint                  nullable:N length:1   signed:N
97column:nb_line_page              table:users          type:tinyint                  nullable:N length:3   signed:N
98column:status                    table:users          type:enum('admin','guest')    nullable:N
99column:language                  table:users          type:varchar                  nullable:N length:50  binary:N
100column:maxwidth                  table:users          type:smallint                 nullable:Y length:6   signed:Y
101column:maxheight                 table:users          type:smallint                 nullable:Y length:6   signed:Y
102column:expand                    table:users          type:enum('true','false')     nullable:N
103column:show_nb_comments          table:users          type:enum('true','false')     nullable:N
104column:recent_period             table:users          type:tinyint                  nullable:N length:3   signed:N
105column:template                  table:users          type:varchar                  nullable:N length:255 binary:N
106column:id                        table:waiting        type:int                      nullable:N length:10  signed:N
107column:storage_category_id       table:waiting        type:smallint                 nullable:N length:5   signed:N
108column:file                      table:waiting        type:varchar                  nullable:N length:255 binary:N
109column:username                  table:waiting        type:varchar                  nullable:N length:255 binary:N
110column:mail_address              table:waiting        type:varchar                  nullable:N length:255 binary:N
111column:date                      table:waiting        type:int                      nullable:N length:10  signed:N
112column:tn_ext                    table:waiting        type:char                     nullable:Y length:3   binary:N
113column:validated                 table:waiting        type:enum('true','false')     nullable:N
114column:infos                     table:waiting        type:text                     nullable:Y
115
116PK:categories_pk     table:categories     column:id
117PK:comments_pk       table:comments       column:id
118PK:config_pk         table:config         column:param
119PK:favorites_pk      table:favorites      column:user_id
120PK:favorites_pk      table:favorites      column:image_id
121PK:group_access_pk   table:group_access   column:group_id
122PK:group_access_pk   table:group_access   column:cat_id
123PK:groups_pk         table:groups         column:id
124PK:image_category_pk table:image_category column:image_id
125PK:image_category_pk table:image_category column:category_id
126PK:images_pk         table:images         column:id
127PK:rate_pk           table:rate           column:user_id
128PK:rate_pk           table:rate           column:element_id
129PK:sessions_pk       table:sessions       column:id
130PK:sites_pk          table:sites          column:id
131PK:user_access_pk    table:user_access    column:user_id
132PK:user_access_pk    table:user_access    column:cat_id
133PK:user_forbidden_pk table:user_forbidden column:user_id
134PK:user_group_pk     table:user_group     column:group_id
135PK:user_group_pk     table:user_group     column:user_id
136PK:users_pk          table:users          column:id
137PK:waiting_pk        table:waiting        column:id
138
139index:categories_i2     table:categories     column:id_uppercat
140index:history_i1        table:history        column:date
141index:image_category_i1 table:image_category column:image_id
142index:image_category_i2 table:image_category column:category_id
143index:images_i2         table:images         column:date_available
144index:images_i1         table:images         column:storage_category_id
145index:images_i3         table:images         column:average_rate
146index:images_i4         table:images         column:hit
147index:images_i5         table:images         column:date_creation
148index:sites_ui1         table:sites          column:galleries_url
149index:users_ui1         table:users          column:username
Note: See TracBrowser for help on using the repository browser.