\r
create sequence file_thumbnail_seq;\r
create table file_thumbnail (\r
- id bigint default nextval('file_thumbnail_seq') primary key /* comment 'unique identifier' */,\r
- file_id bigint unique, \r
+ file_id bigint primary key, \r
url varchar(255) unique, \r
width integer, \r
height integer \r
\r
create sequence file_to_post_seq;\r
create table file_to_post (\r
- id bigint default nextval('file_to_post_seq') primary key /* comment 'unique identifier' */,\r
file_id bigint, \r
post_id bigint, \r
\r
- unique(file_id, post_id)\r
+ primary key (file_id, post_id)\r
);\r
\r
create table group_block (\r