Sv443-Network/JokeAPI

Database - Create jokes table

Opened this issue · 0 comments

Requirements:

  •  The schema follows the type Joke defined in src/types/jokeapi/jokes.ts
    • Categories are always kept updated with data/categories.json
    • Flags are always kept updated with data/flags.json
    • lang property should allow for any valid combination of language and country code (both en and en-US are valid but not de-US)
    • id property is a randomly generated UUID, unique across all jokes from all languages
    • dateAccepted property should keep track of when the submission was accepted into the pool of jokes
    • Each joke has a reference to the user who submitted it