Query
CREATE TABLE "core_services" (
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
"name" varchar(100) NOT NULL,
"incoming_enabled" bool NOT NULL,
"outgoing_enabled" bool NOT NULL,
"sender_filter" varchar(20) NOT NULL,
"config" text NOT NULL CHECK ((JSON_VALID("config") OR "config" IS NULL)),
"app_config" varchar(255) NOT NULL,
"created_at" datetime NOT NULL,
"updated_at" datetime NOT NULL,
"plugin_id" bigint NOT NULL REFERENCES "core_plugins" ("id") DEFERRABLE INITIALLY DEFERRED
)