Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Projects - submit solution API #118

Open
1 task done
alaminsahed opened this issue Apr 11, 2023 · 0 comments · May be fixed by #125
Open
1 task done

Projects - submit solution API #118

alaminsahed opened this issue Apr 11, 2023 · 0 comments · May be fixed by #125
Assignees

Comments

@alaminsahed
Copy link
Member

alaminsahed commented Apr 11, 2023

Frontend: #113

  • Create a mutation (POST API) called submitSolution to submit the solution

Table solution:

  • id (1, 2...)
  • solutionMaskId (WSPMGveFxM)
  • title
  • repositoryUrl
  • liveUrl
  • questions
  • createdAt
  • updatedAt

Related Table tag:

  • id
  • tagMaskId
  • title
  • createdAt
  • updatedAt

Mapping table solutionTag:

  • id
  • solutionId
  • tagId
  • createdAt
  • updatedAt

Sample Migration SQL:

CREATE TABLE tag (
  id SERIAL PRIMARY KEY,
  tagMaskId VARCHAR(30) NOT NULL,
  title VARCHAR(255) NOT NULL,
  createdAt DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  updatedAt DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
);
@mimukit mimukit changed the title Frontend Mentor - Submit Solution API Projects - submit solution API Apr 11, 2023
@alaminsahed alaminsahed linked a pull request May 4, 2023 that will close this issue
@alaminsahed alaminsahed linked a pull request May 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In review
Development

Successfully merging a pull request may close this issue.

1 participant