- add: support for multible rfid tags

This commit is contained in:
Ulrich Knechtelsdorfer
2016-05-28 17:10:07 +02:00
parent 33676b6c94
commit 042d0c86fa
6 changed files with 56 additions and 12 deletions

View File

@@ -75,6 +75,16 @@ CREATE TABLE Deposits(
FOREIGN KEY(userid) REFERENCES USERS(id)
);
CREATE TABLE Rfid(
di INTEGER PRIMARY KEY,
userid INTEGER NOT NULL,
rfid_id TEXT,
is_valid BOOLEAN DEFAULT 1,
FOREIGN KEY(userid) REFERENCES USERS(id)
);
-- The table Config stores basic config data, this is for the admins and the barons