-
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.
feat: Add rand crate and update link routes
- Loading branch information
Showing
7 changed files
with
58 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,22 @@ | ||
CREATE TABLE "User" ( | ||
id SERIAL PRIMARY KEY, | ||
email VARCHAR(255) UNIQUE, | ||
name VARCHAR(255), | ||
createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
updatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP | ||
); | ||
CREATE TABLE "Links" ( | ||
id SERIAL PRIMARY KEY, | ||
createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
updatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
original_url VARCHAR(255), | ||
short_url VARCHAR(255), | ||
userId INTEGER REFERENCES "User"(id) ON DELETE SET NULL | ||
); | ||
CREATE TABLE "QRCodes" ( | ||
id SERIAL PRIMARY KEY, | ||
createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
updatedAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP, | ||
qr_code TEXT, | ||
userId INTEGER REFERENCES "User"(id) ON DELETE SET NULL | ||
); |
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