Skip to content

Commit

Permalink
added file id, private files
Browse files Browse the repository at this point in the history
  • Loading branch information
nihr43 authored Oct 30, 2016
1 parent f172f5d commit de6b860
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ DROP TABLE IF EXISTS user;

CREATE TABLE user
(
userid int AUTO_INCREMENT,
id int AUTO_INCREMENT,
username varchar(255),
hashedpassword varchar(255),
usertypeid int,
activeuserflag int,
PRIMARY KEY (userid)
PRIMARY KEY (id)
);

CREATE TABLE permissiongroup
Expand All @@ -29,7 +29,10 @@ CREATE TABLE permission

CREATE TABLE files
(
groupid int,
path varchar(100),
userid int REFERENCES user(userid),
date datetime
userid int REFERENCES user(id),
date datetime,
private BOOLEAN,
PRIMARY KEY (groupid)
);

0 comments on commit de6b860

Please sign in to comment.