fix some syntax errors in the schema definition

This commit is contained in:
Gibheer 2018-12-12 13:25:40 +01:00
parent c404a6c778
commit 6274230442

View File

@ -16,7 +16,7 @@ create table public.mapping_level(
CREATE TABLE public.notifier (
id serial NOT NULL primary key,
name text NOT NULL,
settings jsonb not null '{}'::jsonb,
settings jsonb not null default '{}'::jsonb
);
CREATE TABLE public.groups (
@ -30,7 +30,7 @@ CREATE TABLE public.nodes (
name text NOT NULL,
updated timestamp with time zone DEFAULT now() NOT NULL,
created timestamp with time zone DEFAULT now() NOT NULL,
message text NOT NULL,
message text NOT NULL
);
CREATE TABLE public.nodes_groups (
@ -45,7 +45,7 @@ CREATE TABLE public.commands (
command text NOT NULL,
updated timestamp with time zone DEFAULT now() NOT NULL,
created timestamp with time zone DEFAULT now() NOT NULL,
message text NOT NULL,
message text NOT NULL
);
CREATE TABLE public.checks (
@ -90,7 +90,7 @@ CREATE TABLE public.notifications (
states integer[] NOT NULL,
output text,
inserted timestamp with time zone DEFAULT now() NOT NULL,
sent timestamp with time zone,
sent timestamp with time zone
);