-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
66 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Project-specific files | ||
external/ | ||
log.txt | ||
*.db | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
CREATE TABLE admins( | ||
id INTEGER PRIMARY KEY AUTOINCREMENT, | ||
username TEXT NOT NULL, | ||
password TEXT NOT NULL | ||
); | ||
CREATE TABLE sqlite_sequence(name,seq); | ||
CREATE TABLE users( | ||
name TEXT NOT NULL, | ||
key TEXT NOT NULL, | ||
slack_id TEXT DEFAULT NULL | ||
); | ||
CREATE TABLE permissions( | ||
device_id TEXT NOT NULL, | ||
user_key TEXT NOT NULL | ||
); | ||
CREATE TABLE event_logs( | ||
device_id TEXT NOT NULL, | ||
user_key TEXT, | ||
operation_type TEXT NOT NULL, | ||
operation_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP | ||
); | ||
CREATE TABLE IF NOT EXISTS "devices" ( | ||
"id" TEXT NOT NULL, | ||
"name" TEXT NOT NULL, | ||
"type" TEXT DEFAULT "tool", | ||
"slack_channel_id" TEXT DEFAULT NULL | ||
); |