|
|
@ -3,6 +3,7 @@ CREATE TABLE IF NOT EXISTS `user` ( |
|
|
|
`pubkey` text NOT NULL COMMENT 'armored gnupg public key of the user', |
|
|
|
`pubkey` text NOT NULL COMMENT 'armored gnupg public key of the user', |
|
|
|
PRIMARY KEY (`name`) |
|
|
|
PRIMARY KEY (`name`) |
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='list of all registered users and their public keys'; |
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='list of all registered users and their public keys'; |
|
|
|
|
|
|
|
|
|
|
|
create table if not exists `message` ( |
|
|
|
create table if not exists `message` ( |
|
|
|
`id` |
|
|
|
`id` |
|
|
|
int not null auto_increment |
|
|
|
int not null auto_increment |
|
|
@ -23,6 +24,8 @@ create table if not exists `message` ( |
|
|
|
on update cascade |
|
|
|
on update cascade |
|
|
|
) character set utf8 engine=innodb |
|
|
|
) character set utf8 engine=innodb |
|
|
|
comment="table to hold all messages for later download by the receiver"; |
|
|
|
comment="table to hold all messages for later download by the receiver"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* table to sore arbitrary options */ |
|
|
|
create table if not exists options ( |
|
|
|
create table if not exists options ( |
|
|
|
name varchar(50) not null unique comment "option name", |
|
|
|
name varchar(50) not null unique comment "option name", |
|
|
|
value text not null comment "option value", |
|
|
|
value text not null comment "option value", |
|
|
|