-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdatabase.db.sql
36 lines (32 loc) · 965 Bytes
/
database.db.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
BEGIN TRANSACTION;
DROP TABLE IF EXISTS "Hosts";
CREATE TABLE IF NOT EXISTS "Hosts"
(
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
"ip" TEXT NOT NULL,
"mac" TEXT NOT NULL,
"vendor" INTEGER NOT NULL,
"date" TEXT NOT NULL,
"network" TEXT NOT NULL
);
DROP TABLE IF EXISTS "Datetime";
CREATE TABLE IF NOT EXISTS "Datetime"
(
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
"date" TEXT NOT NULL UNIQUE
);
INSERT INTO Datetime(id, date) VALUES (1, "trash");
DROP TABLE IF EXISTS Descriptions;
CREATE TABLE IF NOT EXISTS "Descriptions"
(
"mac" TEXT NOT NULL PRIMARY KEY UNIQUE,
"description" TEXT NOT NULL
);
DROP TABLE IF EXISTS "Vendors";
CREATE TABLE IF NOT EXISTS "Vendors"
(
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
"vendor" TEXT NOT NULL UNIQUE
);
INSERT INTO Vendors(id, vendor) VALUES (1, "-");
COMMIT;