Data model.

This is the first draft of or data model. Started looking at the Harry Potter Dataset and discussed in detail among us Wizards how the data should look like.

Pasted the tables below and this description into the Power Platform Plan Designer In our Ulrikke Potters Play Chamber environment – this environment is a play environment, because we do not want to use a preview feature in our other environments.

“Hello, we are building a way for wizards to collect Ingredients, and with the Ingredients they can make potions. When they make potions the wizards can go up levels, and spells gets available for them to use aswell. They will use a canvas app to scan the environment on spawn instances that will be created with power automate. The Ingredients will have a 3d model URL that will be used for the spawns. Could you please help me make the data model, below is what we have come up with.”

We also

Lets see what the plan designer comes up with – Scroll to the bottom of the tables.

Table: Contact(users) – Custom columns

Field NameData typeData type specification
LevelNumber

Table: Ingredient Inventory

Field NameData typeData type specification
IngredientLookupTable: Ingredient(1:N)
QuantityNumber
ContactLookupTable: Contact

Table: Potion Inventory

Field NameData typeData type specification
PotionLookupTable: Potion(1:N)
QuantityNumber
ContactLookupTable: Contact

Table: Spell Inventory

Field NameData typeData type specification
SpellLookupTable: Spells(1:N)
Masteredyes/no
ContactLookupTable: Contact

Table: Potion

Field NameData typeData type specification
PotionstringMain column
IngredientLookupTable: Ingredients(N:N)
EffectTextSinge line
CharacteristicsTextSingle line
Required LevelNumber
image columnimgPrimary image column

Table: Ingredient

Field NameData typeData type specification
IngredientstringMain column
RarityChoice
Image columnimgPrimary image column
Model UrlTestSingle line

Table: Spell

Field NameData typeData type specification
SpellstringMain column
RarityNumber
Required LevelNumber

Table: Spawn Instance

Field NameData typeData type specification
IngredientLookupTable: Ingredients
Spawn Pointtext/lookup?– Hva AI builder produserer

Accepted the user stories

The data model that came out of the plan designer – before doing changes.

The contact table should be used as the “wizard” table:

IT made a Contact table, a custom one. So that is a big big fail from the Planner.

Did not want any data in the tables. I asked the planner to remove the data, but it made the tables with the data anyways.

Another thing it did wrong, was to make an image column – it made it an URL column. I stated that it should be a primary image column. – So needed to do a clean up of the image columns in two tables.

Many to many relationship on potion to ingredients was not made

Added a model driven app to configure the Ingredients the potion needs to be made.

NEXT step – Export the solution out of the play environment and get it into or DEV environment.

Ok, so after import to the DEV environment – an unmanaged solution. We saw more problems with the data model. So we decided to Export a managed solution form the play environment and import that into the dev – delete, and do the process again.

Ok. So it does not work the way i want it to. It is almost there, but it can NOT change a URL column to an image column. And it can not use the standard contact table.

So decided to make it manually.