Database updates

This commit is contained in:
Andre Beging
2022-04-01 16:35:09 +02:00
parent 33c631aaf6
commit 5a1c79ad20
15 changed files with 646 additions and 1523 deletions

View File

@@ -7,6 +7,12 @@
<Member Name="Admin" Value="2" p1:Guid="b61df6d8-6f93-4605-bcb8-40e631176cd7" />
<Member Name="Superadmin" Value="3" p1:Guid="ebd061a6-a896-4a7d-936f-207f87e52535" />
</EnumType>
<EnumType Name="InteractionType" class="InteractionType" p1:Guid="93f9359f-3deb-4dbe-9a8b-b8949f833919">
<Member Name="EinAb" Value="10" p1:Guid="f2ad51e2-93c8-4c70-8620-b3f9fc8fe484" />
<Member Name="Welcome" Value="20" p1:Guid="1e45cfc5-c222-4c21-b09d-fbfdd68f6006" />
<Member Name="Verify" Value="30" p1:Guid="b660c84b-a6ad-456d-b43f-eedca6891ff3" />
<Member Name="Pass" Value="40" p1:Guid="c259e9b3-519f-42ba-99f7-80ea5b268a6c" />
</EnumType>
</class>
<class name="User" entity-set="Users" p1:Guid="f956d4e9-7523-4b77-96be-10cbe0cc6929">
<id name="Id" type="Guid" value-generated="OnAdd" p1:ValidateRequired="true" p1:Guid="ba4bfd64-dca0-4716-beff-1c571eb08665">
@@ -28,29 +34,6 @@
<column name="" />
</property>
</class>
<class name="InteractionProcess" entity-set="InteractionProcesses" p1:Guid="d23a88ab-08ee-4f2e-af3c-45d8b4c6f5a2">
<id name="Id" type="Guid" value-generated="OnAdd" p1:ValidateRequired="true" p1:Guid="638ae9f6-597e-49df-a76e-8931498485a7">
<column name="" />
</id>
<property name="EinAb1Id" type="Guid" p1:ValidateRequired="true" p1:Guid="e78ce4d6-fce8-4584-aae0-876425f00323">
<column name="" />
</property>
<property name="EinAb2Id" type="Guid" p1:ValidateRequired="true" p1:Guid="d41aee11-2f57-406c-bd76-19fdaba89705">
<column name="" />
</property>
<property name="EinAb3Id" type="Guid" p1:ValidateRequired="true" p1:Guid="f1534bb5-c6c4-4022-acb6-9050adeeabb0">
<column name="" />
</property>
<property name="WelcomeId" type="Guid" p1:ValidateRequired="true" p1:Guid="8b29b005-41ee-44e8-934b-f2f24a3d371c">
<column name="" />
</property>
<property name="VerifyId" type="Guid" p1:ValidateRequired="true" p1:Guid="3113a240-5b76-410b-808f-843ad3d49272">
<column name="" />
</property>
<property name="PassId" type="Guid" p1:ValidateRequired="true" p1:Guid="d2592a60-356e-49c6-8116-b8bf86791598">
<column name="" />
</property>
</class>
<class name="Prospect" entity-set="Prospects" p1:Guid="2f24182f-047a-4dba-a926-ddb2044ce3a3">
<id name="Id" type="Guid" value-generated="OnAdd" p1:ValidateRequired="true" p1:Guid="be4ea414-f058-4b82-ab45-43750869702c">
<column name="" />
@@ -65,7 +48,7 @@
<column name="" />
</property>
</class>
<class name="InteractionDate" entity-set="InteractionDates" p1:Guid="c430a343-1225-40dd-9bc3-8f0fdd22b29a">
<class name="Interaction" entity-set="Interactions" p1:Guid="c430a343-1225-40dd-9bc3-8f0fdd22b29a">
<id name="Id" type="Guid" value-generated="OnAdd" p1:ValidateRequired="true" p1:Guid="cca7506d-fc68-4075-bb8c-1b502aa79807">
<column name="" />
</id>
@@ -75,71 +58,29 @@
<property name="UserId" type="Guid" p1:ValidateRequired="true" p1:Guid="fff013a1-3d14-4f2b-aee3-f5c0e5ad4d8e">
<column name="" not-null="False" />
</property>
<property name="Type" type="FoodsharingSiegen.Contracts.Entity.InteractionType" p1:ValidateRequired="true" p1:Guid="caf3dc53-f6cb-4554-98ac-a700657258e9">
<column name="" />
</property>
<property name="ProspectId" type="Guid" p1:ValidateRequired="true" p1:Guid="55b4bace-d6bd-4e19-8a15-8c34157251b6">
<column name="" not-null="False" />
</property>
</class>
<associations>
<association name="InteractionDate_InteractionProcess" cardinality="OneToOne" p1:Guid="9ba69659-8a8e-4e85-a458-060d4fa3e87f">
<end1 multiplicity="One" name="EinAb1" class="InteractionProcess" relation-class="InteractionDate" constrained="False" lazy="False" p1:Guid="99ed9595-a97a-4fca-9351-0dae95c50666">
<property name="Id" />
</end1>
<end2 multiplicity="One" name="InteractionProcess" class="InteractionDate" relation-class="InteractionProcess" generate="False" constrained="False" lazy="False" p1:Guid="842710d5-4c62-4b06-9aae-c325590f29c8">
<property name="EinAb1Id" />
</end2>
</association>
<association name="InteractionDate_InteractionProcess1" cardinality="OneToOne" p1:Guid="e90ffc7d-b8b4-4d9b-86d7-818cde5478c9">
<end1 multiplicity="One" name="EinAb2" class="InteractionProcess" relation-class="InteractionDate" constrained="False" lazy="False" p1:Guid="fe22740f-bf2c-4fef-8874-11403568789e">
<property name="Id" />
</end1>
<end2 multiplicity="One" name="InteractionProcess1" class="InteractionDate" relation-class="InteractionProcess" generate="False" constrained="False" lazy="False" p1:Guid="d1cd8317-a7c9-421e-b39a-7a6d9e5a34df">
<property name="EinAb2Id" />
</end2>
</association>
<association name="InteractionDate_InteractionProcess2" cardinality="OneToOne" p1:Guid="4b27a5e2-0562-4e5d-b0af-a73d9fbae7fa">
<end1 multiplicity="One" name="EinAb3" class="InteractionProcess" relation-class="InteractionDate" constrained="False" lazy="False" p1:Guid="1ddbf2e4-9926-47c7-b8d3-9d5b9c40e577">
<property name="Id" />
</end1>
<end2 multiplicity="One" name="InteractionProcess2" class="InteractionDate" relation-class="InteractionProcess" generate="False" constrained="False" lazy="False" p1:Guid="2857c635-1625-4a85-b62f-941d9375b553">
<property name="EinAb3Id" />
</end2>
</association>
<association name="InteractionDate_InteractionProcess3" cardinality="OneToOne" p1:Guid="c0d57b35-7be8-4cff-851d-12b31e39e7e8">
<end1 multiplicity="One" name="Welcome" class="InteractionProcess" relation-class="InteractionDate" constrained="False" lazy="False" p1:Guid="05022c2e-094c-4ee3-b447-9b71bd7af12e">
<property name="Id" />
</end1>
<end2 multiplicity="One" name="InteractionProcess3" class="InteractionDate" relation-class="InteractionProcess" generate="False" constrained="False" lazy="False" p1:Guid="13d8e731-a95c-4e15-9c47-0d9dbe9a1ade">
<property name="WelcomeId" />
</end2>
</association>
<association name="InteractionDate_InteractionProcess4" cardinality="OneToOne" p1:Guid="508e9d41-16f4-41c1-aaec-6648bfb5b97e">
<end1 multiplicity="One" name="Verify" class="InteractionProcess" relation-class="InteractionDate" constrained="False" lazy="False" p1:Guid="e36eccc6-5945-440f-aa8d-4258e8e0d3a1">
<property name="Id" />
</end1>
<end2 multiplicity="One" name="InteractionProcess4" class="InteractionDate" relation-class="InteractionProcess" generate="False" constrained="False" lazy="False" p1:Guid="ca51296d-51f1-47a0-ab51-8f03f8958c8c">
<property name="VerifyId" />
</end2>
</association>
<association name="InteractionDate_InteractionProcess5" cardinality="OneToOne" p1:Guid="a5e79c5f-77f5-4c77-ae66-ac1ed701917b">
<end1 multiplicity="One" name="Pass" class="InteractionProcess" relation-class="InteractionDate" constrained="False" lazy="False" p1:Guid="7358db21-b81d-4e50-bbf6-e2d943d2c374">
<property name="Id" />
</end1>
<end2 multiplicity="One" name="InteractionProcess5" class="InteractionDate" relation-class="InteractionProcess" generate="False" constrained="False" lazy="False" p1:Guid="ae165858-4164-4fb4-b171-e9e67d00e548">
<property name="PassId" />
</end2>
</association>
<association name="InteractionProcess_Prospect" cardinality="OneToOne" p1:Guid="0b330def-bb89-4941-b362-6ecdd68d8f23">
<end1 multiplicity="One" name="Progress" class="Prospect" relation-class="InteractionProcess" constrained="False" lazy="False" p1:Guid="f87c2a20-9f58-443c-91e6-4f1c96f42e67">
<property name="Id" />
</end1>
<end2 multiplicity="One" name="Prospect" class="InteractionProcess" relation-class="Prospect" generate="False" constrained="False" lazy="False" p1:Guid="121d62f2-b919-40e3-9006-ef35b21fe051">
<property name="ProgressId" />
</end2>
</association>
<association name="User_InteractionDate" cardinality="OneToMany" p1:Guid="865bd42d-b0ba-426f-a351-bcbdd38533f1">
<end1 multiplicity="One" name="User" class="InteractionDate" relation-class="User" constrained="True" lazy="False" p1:Guid="c0594051-ffb9-41a9-88a9-bed70e1693cd">
<end1 multiplicity="One" name="User" class="Interaction" relation-class="User" constrained="True" lazy="False" p1:Guid="c0594051-ffb9-41a9-88a9-bed70e1693cd">
<property name="Id" />
</end1>
<end2 multiplicity="Many" name="InteractionDates" class="User" relation-class="InteractionDate" lazy="False" p1:Guid="d437fc11-f09b-4d31-8c0e-a6c38d48d4fb">
<end2 multiplicity="Many" name="Interactions" class="User" relation-class="Interaction" lazy="False" p1:Guid="d437fc11-f09b-4d31-8c0e-a6c38d48d4fb">
<property name="UserId" />
</end2>
</association>
<association name="Prospect_Interaction" cardinality="OneToMany" p1:Guid="8653aabe-ac0e-4c77-a151-ab7d0c71060b">
<end1 multiplicity="One" name="Prospect" class="Interaction" relation-class="Prospect" constrained="True" lazy="False" p1:Guid="603ec2d2-a38a-4f33-b253-cb150c2985e9">
<property name="Id" />
</end1>
<end2 multiplicity="Many" name="Interactions" class="Prospect" relation-class="Interaction" lazy="False" p1:Guid="a6482ef1-2e42-43f6-a934-c3f507888b12">
<property name="ProspectId" />
</end2>
</association>
</associations>
</efcore>