diff --git a/backend/migrations/20260623204328_ingredients.up.sql b/backend/migrations/20260623204328_ingredients.up.sql index b69df48..40e3a5b 100644 --- a/backend/migrations/20260623204328_ingredients.up.sql +++ b/backend/migrations/20260623204328_ingredients.up.sql @@ -14,9 +14,9 @@ CREATE TABLE ingredients ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), ingredient_type UUID REFERENCES ingredients_type(id) NOT NULL, supplier UUID REFERENCES suppliers(id) NOT NULL, - date_recieved TIMESTAMP NOT NULL DEFAULT now(), - date_opened TIMESTAMP, - date_last_used TIMESTAMP, + date_recieved TIMESTAMPTZ NOT NULL DEFAULT now(), + date_opened TIMESTAMPTZ, + date_last_used TIMESTAMPTZ, finished BOOLEAN DEFAULT false, lot VARCHAR NOT NULL ); diff --git a/backend/migrations/20260623205323_batches.up.sql b/backend/migrations/20260623205323_batches.up.sql index af12aab..b73b603 100644 --- a/backend/migrations/20260623205323_batches.up.sql +++ b/backend/migrations/20260623205323_batches.up.sql @@ -1,7 +1,7 @@ -- Add up migration script here CREATE TABLE batches ( id UUID PRIMARY KEY DEFAULT gen_random_uuid(), - created_at TIMESTAMP NOT NULL DEFAULT now(), + created_at TIMESTAMPTZ NOT NULL DEFAULT now(), flavor UUID REFERENCES flavors(id) NOT NULL, lot_number VARCHAR NOT NULL );