SanFelipeStudios / RomeTwo

Second Project, focused on practical design
0 stars 0 forks source link

Implement Curation Data Models #20

Closed nicholasri closed 11 months ago

nicholasri commented 1 year ago

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

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

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

Given When Then
A Curation View The Page is loading Request the data from mongo
"" The data from mongo has been retrieved Fill out the data and images in the Curation View
"" The data from mongo could NOT be retrieved Display the Internet Connectivity Error View
nicholasri commented 1 year ago

Updated data models in the code and in the schema for the database

Image

nicholasri commented 1 year ago

@Dusharm Can you please review the PR tied to this story?