- design_id integer comment 'id of a design' references design(id),\r
/* local and remote users have profiles */\r
\r
create sequence profile_seq;\r
\r
);\r
\r
+create sequence design_seq;\r
+create table design (\r
+ id bigint default nextval('design_seq') /* comment 'design ID'*/,\r
+ backgroundcolor integer /* comment 'main background color'*/ ,\r
+ contentcolor integer /*comment 'content area background color'*/ ,\r
+ sidebarcolor integer /*comment 'sidebar background color'*/ ,\r
+ textcolor integer /*comment 'text color'*/ ,\r
+ linkcolor integer /*comment 'link color'*/,\r
+ backgroundimage varchar(255) /*comment 'background image, if any'*/,\r
+ disposition int default 1 /*comment 'bit 1 = hide background image, bit 2 = display background image, bit 4 = tile background image'*/,\r
+ primary key (id)\r
+);\r
+\r
+\r
create sequence user_group_seq;\r
create table user_group (\r
\r
unique(file_id, post_id)\r
);\r
\r
-create sequence design_seq;\r
-create table design (\r
- id bigint default nextval('design_seq') /* comment 'design ID'*/,\r
- backgroundcolor integer /* comment 'main background color'*/ ,\r
- contentcolor integer /*comment 'content area background color'*/ ,\r
- sidebarcolor integer /*comment 'sidebar background color'*/ ,\r
- textcolor integer /*comment 'text color'*/ ,\r
- linkcolor integer /*comment 'link color'*/,\r
- backgroundimage varchar(255) /*comment 'background image, if any'*/,\r
- disposition int default 1 /*comment 'bit 1 = hide background image, bit 2 = display background image, bit 4 = tile background image'*/,\r
- primary key (id)\r
-);\r
-\r
create table group_block (\r
group_id integer not null /* comment 'group profile is blocked from' */ references user_group (id),\r
blocked integer not null /* comment 'profile that is blocked' */references profile (id),\r