Skip to content

Commit

Permalink
Add PK to payment table, per #23.
Browse files Browse the repository at this point in the history
  • Loading branch information
devrimgunduz committed Dec 13, 2022
1 parent d321413 commit fef9675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pagila-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,8 @@ CREATE TABLE public.payment (
staff_id integer NOT NULL,
rental_id integer NOT NULL,
amount numeric(5,2) NOT NULL,
payment_date timestamp with time zone NOT NULL
payment_date timestamp with time zone NOT NULL,
PRIMARY KEY (payment_date, payment_id)
)
PARTITION BY RANGE (payment_date);

Expand Down

0 comments on commit fef9675

Please sign in to comment.