{"id":19073010,"url":"https://github.com/drakealia/njs-quiz","last_synced_at":"2026-05-18T17:30:15.478Z","repository":{"id":213792960,"uuid":"734926821","full_name":"DrakeAlia/njs-quiz","owner":"DrakeAlia","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-23T23:02:51.000Z","size":61,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T16:55:45.006Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://njs-quiz-tau.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DrakeAlia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-23T03:43:45.000Z","updated_at":"2023-12-23T03:45:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb9d10f0-71ff-4327-9bb7-c001d74a211f","html_url":"https://github.com/DrakeAlia/njs-quiz","commit_stats":null,"previous_names":["drakealia/njs-quiz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrakeAlia%2Fnjs-quiz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrakeAlia%2Fnjs-quiz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrakeAlia%2Fnjs-quiz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DrakeAlia%2Fnjs-quiz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DrakeAlia","download_url":"https://codeload.github.com/DrakeAlia/njs-quiz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240124234,"owners_count":19751442,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T01:45:04.812Z","updated_at":"2026-05-18T17:30:15.417Z","avatar_url":"https://github.com/DrakeAlia.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"```sql\nCREATE TABLE IF NOT EXISTS quizzes (\n    quiz_id SERIAL PRIMARY KEY,\n    title VARCHAR(255) NOT NULL,\n    description TEXT,\n    question_text TEXT NOT NULL,\n    created_at TIMESTAMPTZ DEFAULT NOW(),\n);\n\nCREATE TABLE IF NOT EXISTS answers (\n    answer_id SERIAL PRIMARY KEY,\n    quiz_id INT REFERENCES quizzes(quiz_id) ON DELETE CASCADE,\n    answer_text TEXT NOT NULL,\n    is_correct BOOLEAN NOT NULL,\n);\n```\n\nHere's the query:\n\n```sql\nCREATE TABLE IF NOT EXISTS quizzes (\n    quiz_id SERIAL PRIMARY KEY,\n    title VARCHAR(255) NOT NULL,\n    description TEXT,\n    question_text TEXT NOT NULL,\n    created_at TIMESTAMPTZ DEFAULT NOW()\n);\n\nCREATE TABLE IF NOT EXISTS answers (\n    answer_id SERIAL PRIMARY KEY,\n    quiz_id INT REFERENCES quizzes(quiz_id) ON DELETE CASCADE,\n    answer_text TEXT NOT NULL,\n    is_correct BOOLEAN NOT NULL\n);\n\n-- Query to insert a quiz\n\n\nINSERT INTO quizzes (title, description, question_text)\nVALUES ('Quiz Title', 'Quiz Description', 'Question Text');\n\nINSERT INTO quizzes (title, description, question_text)\nVALUES ('General Knowledge', 'A basic general knowledge quiz', 'What is the capital of France?');\n\n-- Query to insert answers\n\nINSERT INTO answers (quiz_id, answer_text, is_correct)\nVALUES (1, 'Your Answer Text', TRUE);\n\nINSERT INTO answers (quiz_id, answer_text, is_correct)\nVALUES (1, 'Paris', TRUE);\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrakealia%2Fnjs-quiz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrakealia%2Fnjs-quiz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrakealia%2Fnjs-quiz/lists"}