     created_at timestamptz not null default now(),
     updated_at timestamptz not null default now(),
     user_id bigint not null,
-    tag varchar,
+    tag varchar not null,
     constraint pk_tags primary key (id),
     constraint fk_tags_user_id foreign key (user_id) references users (id) on delete cascade,
     constraint uk_tags_user_tag unique (user_id, tag)

    updated_at timestamptz not null default now(),
    user_id bigint not null,
    timestamp timestamptz not null,
    notes text,
    constraint pk_events primary key (id),
    constraint fk_events_user_id foreign key (user_id) references users (id) on delete cascade
);

    id bigint not null default nextval('id_seq'),
    created_at timestamptz not null default now(),
    updated_at timestamptz not null default now(),
    name varchar(50) not null,
    username varchar(50) not null,
    passhash varchar(50) not null,
    constraint pk_users primary key (id),
    constraint uk_users_username unique (username)
);
