mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-07-09 17:34:26 +03:00
Refactoring
This commit is contained in:
parent
1abfadf28c
commit
296e83fb88
811 changed files with 16877 additions and 147663 deletions
includes
14
includes/scheme.sql
Normal file
14
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