mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-05-24 00:24:07 +03:00
Initial import and public 'release'
This commit is contained in:
parent
327597ca02
commit
90ee4dfea0
792 changed files with 147584 additions and 0 deletions
14
htdocs/includes/scheme.sql
Normal file
14
htdocs/includes/scheme.sql
Normal file
|
@ -0,0 +1,14 @@
|
|||
PRAGMA foreign_keys = 1;
|
||||
|
||||
CREATE TABLE users (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
emailaddress VARCHAR UNIQUE NOT NULL,
|
||||
password VARCHAR NOT NULL,
|
||||
isadmin BOOLEAN DEFAULT FALSE);
|
||||
|
||||
CREATE TABLE zones (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
zone VARCHAR NOT NULL,
|
||||
owner INTEGER NOT NULL,
|
||||
UNIQUE(zone,owner),
|
||||
FOREIGN KEY(owner) REFERENCES users(id) ON DELETE CASCADE ON UPDATE CASCADE );
|
Loading…
Add table
Add a link
Reference in a new issue