tvl-depot/users/grfn/bbbg/resources/migrations/20211220002229-add-attendee-checks.up.sql
Griffin Smith 4643585e01 feat(grfn/bbbg): Add attendee checks
Change-Id: I7f96597ab3f0552cdecd0abac1ef50a68d3e0b7b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4508
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Autosubmit: grfn <grfn@gws.fyi>
2021-12-20 01:23:02 +00:00

7 lines
312 B
SQL

CREATE TABLE attendee_check (
"id" UUID PRIMARY KEY NOT NULL DEFAULT uuid_generate_v4(),
"attendee_id" UUID NOT NULL REFERENCES attendee ("id"),
"user_id" UUID NOT NULL REFERENCES "public"."user" ("id"),
"last_dose_at" DATE,
"checked_at" TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT now()
);