fix some syntax errors in the schema definition
This commit is contained in:
parent
c404a6c778
commit
6274230442
@ -16,7 +16,7 @@ create table public.mapping_level(
|
|||||||
CREATE TABLE public.notifier (
|
CREATE TABLE public.notifier (
|
||||||
id serial NOT NULL primary key,
|
id serial NOT NULL primary key,
|
||||||
name text NOT NULL,
|
name text NOT NULL,
|
||||||
settings jsonb not null '{}'::jsonb,
|
settings jsonb not null default '{}'::jsonb
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE public.groups (
|
CREATE TABLE public.groups (
|
||||||
@ -30,7 +30,7 @@ CREATE TABLE public.nodes (
|
|||||||
name text NOT NULL,
|
name text NOT NULL,
|
||||||
updated timestamp with time zone DEFAULT now() NOT NULL,
|
updated timestamp with time zone DEFAULT now() NOT NULL,
|
||||||
created 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 (
|
CREATE TABLE public.nodes_groups (
|
||||||
@ -45,7 +45,7 @@ CREATE TABLE public.commands (
|
|||||||
command text NOT NULL,
|
command text NOT NULL,
|
||||||
updated timestamp with time zone DEFAULT now() NOT NULL,
|
updated timestamp with time zone DEFAULT now() NOT NULL,
|
||||||
created 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 (
|
CREATE TABLE public.checks (
|
||||||
@ -90,7 +90,7 @@ CREATE TABLE public.notifications (
|
|||||||
states integer[] NOT NULL,
|
states integer[] NOT NULL,
|
||||||
output text,
|
output text,
|
||||||
inserted timestamp with time zone DEFAULT now() NOT NULL,
|
inserted timestamp with time zone DEFAULT now() NOT NULL,
|
||||||
sent timestamp with time zone,
|
sent timestamp with time zone
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user