Created the database and API's - #8
Open
DheerajShrivastav wants to merge 10 commits into
Open
Conversation
Sets up Prisma ORM for database interactions. Introduces Prisma schema with Event, TicketType, and TicketValidation models. Also adds prisma client and type definitions to the project. Adds zod schemas for data validation. Ignores prisma migrations folder.
Adds the ability to specify a market address when creating and updating events. This allows for tracking and managing secondary sales through a dedicated market contract.
- Implemented a new page for generating QR codes with sample data. - Created a scanning page using html5-qrcode for ticket validation. - Added utility functions for generating QR code data and images. - Updated package.json and package-lock.json to include necessary dependencies (html5-qrcode, qrcode). - Enhanced user interface for scanning and validation results.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created the database schema and api's related to event, ticket-validation, and ticketTypes as mentioned in https://gist.github.com/DheerajShrivastav/861fe84d11a22c180aea31a852f24525.
Here are the API test cases (used Postman) to test the API.
https://.postman.co/workspace/My-Workspace~d02e4850-4ec6-48e5-8b03-87770a7e0b0d/collection/29560591-6f61edea-7137-4575-89cb-8295c7286222?action=share&creator=29560591