cyberman/schema.sql

47 lines
969 B
MySQL
Raw Normal View History

drop table if exists cyberman;
create table cyberman (
2017-08-20 00:45:25 +02:00
id integer primary key,
dbrev integer not null
);
insert into cyberman (dbrev) values (5);
drop table if exists user;
create table user (
2017-08-20 00:45:25 +02:00
id integer primary key,
email text not null,
password text not null,
salt text not null,
active integer not null default 0,
conftoken text not null,
newemail text,
recoverytoken text,
stylesheet text
);
drop table if exists session;
create table session (
2017-08-20 00:45:25 +02:00
id integer primary key,
uid integer not null,
since integer not null,
token text not null
);
2017-07-16 18:13:15 +02:00
drop table if exists domain;
create table domain (
2017-08-20 00:45:25 +02:00
id integer primary key,
name string not null,
ownerid integer not null,
2017-08-20 21:52:30 +02:00
lastsid integer not null default 0,
since integer not null default 1503187200
2017-08-11 22:28:32 +02:00
);
drop table if exists record;
create table record (
2017-08-20 00:45:25 +02:00
id integer primary key,
sid integer not null,
domainid integer not null,
type string not null,
name string not null,
value string not null
2017-08-11 22:28:32 +02:00
);