cyberman/schema.sql

24 lines
469 B
MySQL
Raw Normal View History

drop table if exists user;
create table user (
id integer primary key,
email text not null,
password text not null,
salt text not null,
active integer not null default 0
);
drop table if exists session;
create table session (
id integer primary key,
2017-07-15 23:08:11 +02:00
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 (
id integer primary key,
name string not null,
ownerid integer not null
)