create type "audit"."action_status" as enum ('SUCCESS', 'FAIL');

create table audit.notification_entries (
    "id" bigint generated by default as identity not null,
    "status" audit.action_status not null,
    "action" text not null,
    "comment" text,
    "related_record_key" text,
    "created_at" timestamp with time zone not null default now()
);

grant usage on schema audit to authenticated;
grant select, insert on table audit.notification_entries to authenticated;
