Closed nicholasri closed 11 months ago
Reference: Develop the database using this issue as a guideline: https://github.com/SanFelipeStudios/RomeTwo/issues/11
As an iOS Engineer, I want to define and implement the Data Models we are going to use for our application in MongoDB Atlas and as structs in SwiftUI. Below are the defined data models necessary for the Curation View.
Consider the relationships available in Realm: https://www.mongodb.com/docs/realm/sdk/swift/model-data/#model-data---swift-sdk
TODO: Create a follow up story to research which cloud service provider to use for storage of Media.
Game
Developer
Publisher
Updated data models in the code and in the schema for the database
@Dusharm Can you please review the PR tied to this story?
Data Modeling
Reference: Develop the database using this issue as a guideline: https://github.com/SanFelipeStudios/RomeTwo/issues/11
As an iOS Engineer, I want to define and implement the Data Models we are going to use for our application in MongoDB Atlas and as structs in SwiftUI. Below are the defined data models necessary for the Curation View.
Consider the relationships available in Realm: https://www.mongodb.com/docs/realm/sdk/swift/model-data/#model-data---swift-sdk
TODO: Create a follow up story to research which cloud service provider to use for storage of Media.
Defined Models
One-To-Many: Users can have many Curations
Users should be in their own database.
One-To-Many: Users can have many games
Curation: [UUID] (linking)One-To-Many: Users can have many Address
One-To-One: Address can only have one country
One-To-Many: Publishers and Developers can have many games
Game
Reviews: [UUID] (linking)Unbounded Number of DocumentsMedia: [Integer: UUID] (linking)Developer
Publisher
Many-To-Many: Games can have many labels and labels can have many games
One-To-Many: Games can have many reviews
One-To-Many: Games can have many media files
Acceptance Criteria