source: trunk/install/dbscheme.txt @ 507

Last change on this file since 507 was 507, checked in by z0rglub, 20 years ago

add rating feature

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