-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
3 changed files
with
11 additions
and
11 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,8 +1,8 @@ | ||
DROP TABLE IF EXISTS jokes; | ||
CREATE TABLE jokes | ||
( | ||
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, | ||
joke TEXT NOT NULL UNIQUE, | ||
answer TEXT NULL UNIQUE, | ||
added_at TIMESTAMP | ||
id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, | ||
setup TEXT NOT NULL UNIQUE, | ||
punchline TEXT NULL UNIQUE, | ||
added_at 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
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 @@ | ||
export interface Joke { | ||
id: number; | ||
joke: string; | ||
answer?: string; | ||
setup: string; | ||
punchline?: string; | ||
} |