-
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.
[endpoints] Adding new endpoint /films and Get Post handler for it. A…
…dding new sql raw script for film database creating
- Loading branch information
Nikolay Ryzhov
committed
Apr 23, 2024
1 parent
39fb36a
commit 633fd2c
Showing
5 changed files
with
71 additions
and
12 deletions.
There are no files selected for viewing
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,5 +1,5 @@ | ||
## commands: | ||
|
||
CREATE DATABASE Filmoteka; | ||
CREATE DATABASE filmoteka; | ||
|
||
sudo -u postgres psql -d Filmoteka | ||
sudo -u postgres psql -d filmoteka |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
CREATE TABLE film ( | ||
id SERIAL PRIMARY KEY, | ||
title VARCHAR(150) NOT NULL, | ||
description TEXT, | ||
release_date DATE, | ||
rating INT, | ||
actors INT[] | ||
); |
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
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
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