From f5eee854f883450e5962bf75a8ee766075f63aa9 Mon Sep 17 00:00:00 2001 From: Eugeny Ablesov <133771006+EvgenyAblesov@users.noreply.github.com> Date: Tue, 30 May 2023 15:02:52 +0300 Subject: [PATCH] Update scheme.sql pymisp warning fix --- assets/scheme.sql | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/assets/scheme.sql b/assets/scheme.sql index a689cb6..25ce055 100644 --- a/assets/scheme.sql +++ b/assets/scheme.sql @@ -1,30 +1,30 @@ CREATE TABLE "iocs" ( "id" INTEGER UNIQUE, - "value" TEXT NOT NULL, - "type" TEXT NOT NULL, - "tlp" TEXT NOT NULL, - "tag" TEXT NOT NULL, - "source" TEXT NOT NULL, - "added_on" NUMERIC NOT NULL, + "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, PRIMARY KEY("id" AUTOINCREMENT) ); CREATE TABLE "whitelist" ( "id" INTEGER UNIQUE, - "element" TEXT NOT NULL UNIQUE, - "type" TEXT NOT NULL, - "source" TEXT NOT NULL, - "added_on" INTEGER NOT NULL, + "element" TEXT NOT NULL UNIQUE, + "type" TEXT NOT NULL, + "source" TEXT NOT NULL, + "added_on" TEXT NOT NULL, PRIMARY KEY("id" AUTOINCREMENT) ); CREATE TABLE "misp" ( - "id" INTEGER UNIQUE, - "name" TEXT, - "url" TEXT NOT NULL, - "apikey" TEXT NOT NULL, + "id" INTEGER UNIQUE, + "name" TEXT, + "url" TEXT NOT NULL, + "apikey" TEXT NOT NULL, "verifycert" INTEGER NOT NULL DEFAULT 0, - "added_on" NUMERIC NOT NULL, - "last_sync" NUMERIC NOT NULL DEFAULT 0, + "added_on" TEXT NOT NULL, + "last_sync" TEXT NOT NULL DEFAULT 0, PRIMARY KEY("id" AUTOINCREMENT) );