20 lines
399 B
SQL
20 lines
399 B
SQL
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
|
|
);
|
|
|
|
|