should work

This commit is contained in:
q
2016-07-03 23:47:54 +03:00
commit ca7ce92a04
11 changed files with 930 additions and 0 deletions

19
schema.sql Normal file
View File

@@ -0,0 +1,19 @@
drop table if exists users;
drop table if exists shops;
drop table if exists shares;
create table users (
id integer primary key autoincrement,
user text not null,
pass text not null
);
create table shops (
id integer primary key autoincrement,
shop text not null,
owner integer not null
);
create table shares (
shopid integer not null,
userid integer not null
);