mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-07-02 04:43:17 +02:00
merged folder branch
Change-Id: I57f3427b128e8b313572e7bc3734933f4d345d1c Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
@ -272,35 +272,30 @@ create table if not exists `domain_user` (
|
||||
|
||||
|
||||
create table if not exists `folder` (
|
||||
`id` int not null auto_increment,
|
||||
`folder_id` int not null auto_increment,
|
||||
`parent_id` int default 0,
|
||||
`uid` int default 0,
|
||||
`name` char(64) not null,
|
||||
unique(`parent_id`, `name`),
|
||||
primary key (`id`)
|
||||
unique(`uid`, `name`),
|
||||
primary key (`folder_id`)
|
||||
) Engine=InnoDB;
|
||||
|
||||
|
||||
create table if not exists `folder_user` (
|
||||
`id` bigint unsigned not null,
|
||||
`uid` int unsigned not null,
|
||||
key `folder_user_idx` (`id`),
|
||||
key `folder_user_idx2` (`uid`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
create table if not exists `folder_extra` (
|
||||
`id` int unsigned not null auto_increment,
|
||||
`uid` int unsigned not null,
|
||||
`name` char(64) not null,
|
||||
unique(uid, name),
|
||||
key (`id`)
|
||||
create table if not exists `folder_email` (
|
||||
`uid` int unsigned not null auto_increment,
|
||||
`email` char(128) not null unique,
|
||||
key `folder_email_idx` (`uid`),
|
||||
key `folder_email_idx2` (`email`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
create table if not exists `folder_message` (
|
||||
folder_id bigint not null,
|
||||
id bigint not null,
|
||||
unique(folder_id, id)
|
||||
`id` bigint unsigned auto_increment not null,
|
||||
`folder_id` bigint not null,
|
||||
`message_id` bigint not null,
|
||||
`uid` int not null,
|
||||
unique(`message_id`, `uid`),
|
||||
key (`id`)
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user