KasperskyLab-TinyCheck/assets/scheme.sql

31 lines
736 B
MySQL
Raw Normal View History

2020-11-24 19:45:03 +01:00
CREATE TABLE "iocs" (
"id" INTEGER UNIQUE,
2023-05-30 14:02:52 +02:00
"value" TEXT NOT NULL,
"type" TEXT NOT NULL,
"tlp" TEXT NOT NULL,
"tag" TEXT NOT NULL,
"source" TEXT NOT NULL,
"added_on" TEXT NOT NULL,
2020-11-24 19:45:03 +01:00
PRIMARY KEY("id" AUTOINCREMENT)
);
CREATE TABLE "whitelist" (
"id" INTEGER UNIQUE,
2023-05-30 14:02:52 +02:00
"element" TEXT NOT NULL UNIQUE,
"type" TEXT NOT NULL,
"source" TEXT NOT NULL,
"added_on" TEXT NOT NULL,
2020-11-24 19:45:03 +01:00
PRIMARY KEY("id" AUTOINCREMENT)
);
CREATE TABLE "misp" (
2023-05-30 14:02:52 +02:00
"id" INTEGER UNIQUE,
"name" TEXT,
"url" TEXT NOT NULL,
"apikey" TEXT NOT NULL,
"verifycert" INTEGER NOT NULL DEFAULT 0,
2023-05-30 14:02:52 +02:00
"added_on" TEXT NOT NULL,
"last_sync" TEXT NOT NULL DEFAULT 0,
PRIMARY KEY("id" AUTOINCREMENT)
);