-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
55fbbb4
commit 3fe1482
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/main/resources/db/migration/V3_20241101_0722__Create_BookInstances_Table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/main/resources/db/migration/V4_20241101_0724__Create_Checkouts_Table.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
CREATE TABLE Checkouts ( | ||
checkout_id bigserial PRIMARY KEY, | ||
user_id INT REFERENCES Users(user_id), | ||
instance_id INT REFERENCES BookInstances(instance_id), | ||
user_id BIGINT REFERENCES Users(user_id), | ||
instance_id BIGINT REFERENCES book_instances(instance_id), | ||
checkout_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
return_date TIMESTAMP | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters