Database updates
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,22 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<EntityDeveloper Version="6.12.1395.0">
|
<EntityDeveloper Version="6.12.1338.0">
|
||||||
<ModelSettings xmlns:ed="http://devart.com/schemas/EntityDeveloper/1.0" ConnectionStringInAppConfig="False" TargetFramework="Net60" DetectTPTInheritance="True" EntityFrameworkCoreVersion="Version6" DetectFunctionBasedColumnDefault="True">
|
<ModelSettings xmlns:ed="http://devart.com/schemas/EntityDeveloper/1.0" ConnectionStringInAppConfig="False" TargetFramework="Net60" DetectTPTInheritance="True" EntityFrameworkCoreVersion="Version6" DetectFunctionBasedColumnDefault="True">
|
||||||
<Connection ConnectionString="" Provider="" />
|
<Connection ConnectionString="" Provider="" />
|
||||||
<Generation />
|
<Generation>
|
||||||
|
<GeneratedFiles>
|
||||||
|
<File Name="FsContext.cs" DestinationFolder="FoodsharingSiegen.Server\Data" OverwriteMode="OverwriteIfAutoGenerated" />
|
||||||
|
<File Name="FsContext.Generated.cs" DestinationFolder="FoodsharingSiegen.Server\Data" />
|
||||||
|
<File Name="User.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" OverwriteMode="OverwriteIfAutoGenerated" />
|
||||||
|
<File Name="User.Generated.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" />
|
||||||
|
<File Name="InteractionProcess.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" OverwriteMode="OverwriteIfAutoGenerated" />
|
||||||
|
<File Name="InteractionProcess.Generated.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" />
|
||||||
|
<File Name="Prospect.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" OverwriteMode="OverwriteIfAutoGenerated" />
|
||||||
|
<File Name="Prospect.Generated.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" />
|
||||||
|
<File Name="InteractionDate.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" OverwriteMode="OverwriteIfAutoGenerated" />
|
||||||
|
<File Name="InteractionDate.Generated.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" />
|
||||||
|
<File Name="UserType.cs" DestinationFolder="FoodsharingSiegen.Contracts\Entity" />
|
||||||
|
</GeneratedFiles>
|
||||||
|
</Generation>
|
||||||
<DatabaseFirstNamingRules>
|
<DatabaseFirstNamingRules>
|
||||||
<EntitySet PluralizationName="Pluralize" />
|
<EntitySet PluralizationName="Pluralize" />
|
||||||
<Class UseSchemaAsPrefix="False" PluralizeCollectionNavigationPropertyName="True" AddConstraintColumnsToNavigationPropertyName="False" RemoveUnderscores="True" AddUnderscores="False" RemoveInvalidCharacters="True" CodeCase="FirstLetterUppercase" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Singularize" />
|
<Class UseSchemaAsPrefix="False" PluralizeCollectionNavigationPropertyName="True" AddConstraintColumnsToNavigationPropertyName="False" RemoveUnderscores="True" AddUnderscores="False" RemoveInvalidCharacters="True" CodeCase="FirstLetterUppercase" AddPrefix="" AddSuffix="" RemovePrefixes="" RemoveSuffixes="" PluralizationName="Singularize" />
|
||||||
@@ -19,27 +33,27 @@
|
|||||||
</Diagrams>
|
</Diagrams>
|
||||||
<Templates>
|
<Templates>
|
||||||
<Template Name="EF Core" Description="Use this template to generate classes for an Entity Framework Core model." Enabled="True" PredefinedTemplateName="EF Core C#">
|
<Template Name="EF Core" Description="Use this template to generate classes for an Entity Framework Core model." Enabled="True" PredefinedTemplateName="EF Core C#">
|
||||||
<ed:Property Name="ValidationFramework" Type="EntityDeveloper.TemplateEngine.ValidationFramework, EntityDeveloper.Common, Version=6.12.1395.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
<ed:Property Name="ValidationFramework" Type="EntityDeveloper.TemplateEngine.ValidationFramework, EntityDeveloper.Common, Version=6.12.1338.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
||||||
<ValidationFramework>None</ValidationFramework>
|
<ValidationFramework>None</ValidationFramework>
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="ValidationErrorMessages" Type="EntityDeveloper.TemplateEngine.ValidationErrorMessages, EntityDeveloper.Common, Version=6.12.1395.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
<ed:Property Name="ValidationErrorMessages" Type="EntityDeveloper.TemplateEngine.ValidationErrorMessages, EntityDeveloper.Common, Version=6.12.1338.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
||||||
<ValidationErrorMessages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
|
<ValidationErrorMessages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="ContextOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=6.12.1395.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
<ed:Property Name="ContextOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=6.12.1338.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
||||||
<OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
<OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
<Project />
|
<Project />
|
||||||
<ProjectFolder />
|
<ProjectFolder />
|
||||||
<DestinationFolder>FoodsharingSiegen.Server\Data</DestinationFolder>
|
<DestinationFolder>FoodsharingSiegen.Server\Data</DestinationFolder>
|
||||||
</OutputInfo>
|
</OutputInfo>
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="EntitiesOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=6.12.1395.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
<ed:Property Name="EntitiesOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=6.12.1338.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
||||||
<OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
<OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
<Project />
|
<Project />
|
||||||
<ProjectFolder />
|
<ProjectFolder />
|
||||||
<DestinationFolder>FoodsharingSiegen.Contracts\Entity</DestinationFolder>
|
<DestinationFolder>FoodsharingSiegen.Contracts\Entity</DestinationFolder>
|
||||||
</OutputInfo>
|
</OutputInfo>
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="EnumOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=6.12.1395.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
<ed:Property Name="EnumOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=6.12.1338.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
||||||
<OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
<OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
<Project />
|
<Project />
|
||||||
<ProjectFolder />
|
<ProjectFolder />
|
||||||
@@ -82,29 +96,29 @@
|
|||||||
<ed:Property Name="JsonFileBasePath" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<ed:Property Name="JsonFileBasePath" Type="System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<string d6p1:nil="true" xmlns:d6p1="http://www.w3.org/2001/XMLSchema-instance" />
|
<string d6p1:nil="true" xmlns:d6p1="http://www.w3.org/2001/XMLSchema-instance" />
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="PrimitiveDefaultValueGeneration" Type="EntityDeveloper.DefaultValueBehavior, EntityDeveloper.Orm.Common, Version=6.12.1395.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
<ed:Property Name="PrimitiveDefaultValueGeneration" Type="EntityDeveloper.DefaultValueBehavior, EntityDeveloper.Orm.Common, Version=6.12.1338.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
||||||
<DefaultValueBehavior>Literal</DefaultValueBehavior>
|
<DefaultValueBehavior>Literal</DefaultValueBehavior>
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="CollectionPropertyType" Type="EntityDeveloper.EntityFrameworkCore.EFCoreCollectionPropertyType, EntityDeveloper.Orm.EntityFrameworkCore, Version=6.12.1395.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
<ed:Property Name="CollectionPropertyType" Type="EntityDeveloper.EntityFrameworkCore.EFCoreCollectionPropertyType, EntityDeveloper.Orm.EntityFrameworkCore, Version=6.12.1338.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
||||||
<EFCoreCollectionPropertyType>Default</EFCoreCollectionPropertyType>
|
<EFCoreCollectionPropertyType>Default</EFCoreCollectionPropertyType>
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="CollectionInitializationType" Type="EntityDeveloper.EntityFrameworkCore.EFCoreCollectionInitializationType, EntityDeveloper.Orm.EntityFrameworkCore, Version=6.12.1395.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
<ed:Property Name="CollectionInitializationType" Type="EntityDeveloper.EntityFrameworkCore.EFCoreCollectionInitializationType, EntityDeveloper.Orm.EntityFrameworkCore, Version=6.12.1338.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
||||||
<EFCoreCollectionInitializationType>Default</EFCoreCollectionInitializationType>
|
<EFCoreCollectionInitializationType>Default</EFCoreCollectionInitializationType>
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="NullableReferenceTypes" Type="EntityDeveloper.ReferenceTypeNullability, EntityDeveloper.Orm.Common, Version=6.12.1395.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
<ed:Property Name="NullableReferenceTypes" Type="EntityDeveloper.ReferenceTypeNullability, EntityDeveloper.Orm.Common, Version=6.12.1338.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
||||||
<ReferenceTypeNullability>Default</ReferenceTypeNullability>
|
<ReferenceTypeNullability>Default</ReferenceTypeNullability>
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="SelfContainedEntityConfiguration" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<ed:Property Name="SelfContainedEntityConfiguration" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<boolean>false</boolean>
|
<boolean>false</boolean>
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="EntitiesConfigurationOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=6.12.1395.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
<ed:Property Name="EntitiesConfigurationOutput" Type="EntityDeveloper.TemplateEngine.OutputInfo, EntityDeveloper.Common, Version=6.12.1338.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
||||||
<OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
<OutputInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||||
<Project />
|
<Project />
|
||||||
<ProjectFolder />
|
<ProjectFolder />
|
||||||
<DestinationFolder />
|
<DestinationFolder />
|
||||||
</OutputInfo>
|
</OutputInfo>
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="SerializationLibrary" Type="EntityDeveloper.SerializationLibrary, EntityDeveloper.Orm.Common, Version=6.12.1395.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
<ed:Property Name="SerializationLibrary" Type="EntityDeveloper.SerializationLibrary, EntityDeveloper.Orm.Common, Version=6.12.1338.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
||||||
<SerializationLibrary>None</SerializationLibrary>
|
<SerializationLibrary>None</SerializationLibrary>
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="SerializeOriginalColumnNames" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<ed:Property Name="SerializeOriginalColumnNames" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
@@ -113,7 +127,7 @@
|
|||||||
<ed:Property Name="SerializeNullValues" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<ed:Property Name="SerializeNullValues" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<boolean>true</boolean>
|
<boolean>true</boolean>
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="SerializeNavigationProperties" Type="EntityDeveloper.NavigationPropertySerializationBehavior, EntityDeveloper.Orm.Common, Version=6.12.1395.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
<ed:Property Name="SerializeNavigationProperties" Type="EntityDeveloper.NavigationPropertySerializationBehavior, EntityDeveloper.Orm.Common, Version=6.12.1338.0, Culture=neutral, PublicKeyToken=09af7300eec23701">
|
||||||
<NavigationPropertySerializationBehavior>All</NavigationPropertySerializationBehavior>
|
<NavigationPropertySerializationBehavior>All</NavigationPropertySerializationBehavior>
|
||||||
</ed:Property>
|
</ed:Property>
|
||||||
<ed:Property Name="GenerateSerializableAttributes" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<ed:Property Name="GenerateSerializableAttributes" Type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
|
|||||||
129
FSSiegen.efml
129
FSSiegen.efml
@@ -12,5 +12,134 @@
|
|||||||
<id name="Id" type="Guid" value-generated="OnAdd" p1:ValidateRequired="true" p1:Guid="ba4bfd64-dca0-4716-beff-1c571eb08665">
|
<id name="Id" type="Guid" value-generated="OnAdd" p1:ValidateRequired="true" p1:Guid="ba4bfd64-dca0-4716-beff-1c571eb08665">
|
||||||
<column name="" />
|
<column name="" />
|
||||||
</id>
|
</id>
|
||||||
|
<property name="Mail" type="String" p1:ValidateRequired="true" p1:Guid="fbbc5bac-8c9b-48fa-a946-389cfd613965">
|
||||||
|
<column name="" />
|
||||||
|
</property>
|
||||||
|
<property name="Type" type="FoodsharingSiegen.Contracts.Entity.UserType" p1:ValidateRequired="true" p1:Guid="3245ebed-40ba-4f74-9354-dab888f3f338">
|
||||||
|
<column name="" />
|
||||||
|
</property>
|
||||||
|
<property name="Verified" type="Boolean" p1:ValidateRequired="true" p1:Guid="84f6d2c7-1cdc-499f-999c-18afb86830e8">
|
||||||
|
<column name="" />
|
||||||
|
</property>
|
||||||
|
<property name="Name" type="String" p1:ValidateRequired="true" p1:Guid="dc58cb83-4dd2-46de-b220-f5dbad3c3821">
|
||||||
|
<column name="" />
|
||||||
|
</property>
|
||||||
|
<property name="Created" type="DateTime" p1:ValidateRequired="true" p1:Guid="349bc0e7-f815-4593-9215-d2b91fdfacc4">
|
||||||
|
<column name="" />
|
||||||
|
</property>
|
||||||
</class>
|
</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="" />
|
||||||
|
</id>
|
||||||
|
<property name="FsId" type="Int32" p1:ValidateRequired="true" p1:Guid="001ad395-f071-4c2d-bb73-420dfbcb4632">
|
||||||
|
<column name="" />
|
||||||
|
</property>
|
||||||
|
<property name="Name" type="String" p1:ValidateRequired="true" p1:Guid="25eda2da-aff0-45a6-bb11-f19420f21b62">
|
||||||
|
<column name="" />
|
||||||
|
</property>
|
||||||
|
<property name="ProgressId" type="Guid" p1:ValidateRequired="true" p1:Guid="db78282f-9001-4e54-a175-fe4391e714fc">
|
||||||
|
<column name="" />
|
||||||
|
</property>
|
||||||
|
</class>
|
||||||
|
<class name="InteractionDate" entity-set="InteractionDates" 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>
|
||||||
|
<property name="Date" type="DateTime" p1:ValidateRequired="true" p1:Guid="6f0890a5-0db1-40e6-931c-92c885506d9b">
|
||||||
|
<column name="" />
|
||||||
|
</property>
|
||||||
|
<property name="UserId" type="Guid" p1:ValidateRequired="true" p1:Guid="fff013a1-3d14-4f2b-aee3-f5c0e5ad4d8e">
|
||||||
|
<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">
|
||||||
|
<property name="Id" />
|
||||||
|
</end1>
|
||||||
|
<end2 multiplicity="Many" name="InteractionDates" class="User" relation-class="InteractionDate" lazy="False" p1:Guid="d437fc11-f09b-4d31-8c0e-a6c38d48d4fb">
|
||||||
|
<property name="UserId" />
|
||||||
|
</end2>
|
||||||
|
</association>
|
||||||
|
</associations>
|
||||||
</efcore>
|
</efcore>
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
// This is auto-generated code.
|
// This is auto-generated code.
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// This code was generated by Entity Developer tool using EF Core template.
|
// This code was generated by Entity Developer tool using EF Core template.
|
||||||
// Code is generated on: 11.01.2022 07:46:42
|
// Code is generated on: 24.01.2022 08:57:25
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
@@ -29,6 +29,10 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
|
|
||||||
public virtual DateTime Date { get; set; }
|
public virtual DateTime Date { get; set; }
|
||||||
|
|
||||||
|
public virtual Guid UserId { get; set; }
|
||||||
|
|
||||||
|
public virtual User User { get; set; }
|
||||||
|
|
||||||
#region Extensibility Method Definitions
|
#region Extensibility Method Definitions
|
||||||
|
|
||||||
partial void OnCreated();
|
partial void OnCreated();
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// This is auto-generated code.
|
// This is auto-generated code.
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// This code was generated by Entity Developer tool using EF Core template.
|
// This code was generated by Entity Developer tool using EF Core template.
|
||||||
// Code is generated on: 11.01.2022 07:46:42
|
// Code is generated on: 24.01.2022 08:57:25
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// This is auto-generated code.
|
// This is auto-generated code.
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// This code was generated by Entity Developer tool using EF Core template.
|
// This code was generated by Entity Developer tool using EF Core template.
|
||||||
// Code is generated on: 11.01.2022 07:46:42
|
// Code is generated on: 24.01.2022 08:57:25
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// This is auto-generated code.
|
// This is auto-generated code.
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// This code was generated by Entity Developer tool using EF Core template.
|
// This code was generated by Entity Developer tool using EF Core template.
|
||||||
// Code is generated on: 11.01.2022 07:46:42
|
// Code is generated on: 24.01.2022 08:57:25
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
@@ -22,6 +22,7 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
|
|
||||||
public User()
|
public User()
|
||||||
{
|
{
|
||||||
|
this.InteractionDates = new List<InteractionDate>();
|
||||||
OnCreated();
|
OnCreated();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -31,7 +32,13 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
|
|
||||||
public virtual UserType Type { get; set; }
|
public virtual UserType Type { get; set; }
|
||||||
|
|
||||||
public virtual string Verified { get; set; }
|
public virtual bool Verified { get; set; }
|
||||||
|
|
||||||
|
public virtual string Name { get; set; }
|
||||||
|
|
||||||
|
public virtual DateTime Created { get; set; }
|
||||||
|
|
||||||
|
public virtual IList<InteractionDate> InteractionDates { get; set; }
|
||||||
|
|
||||||
#region Extensibility Method Definitions
|
#region Extensibility Method Definitions
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// This is auto-generated code.
|
// This is auto-generated code.
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// This code was generated by Entity Developer tool using EF Core template.
|
// This code was generated by Entity Developer tool using EF Core template.
|
||||||
// Code is generated on: 11.01.2022 07:46:42
|
// Code is generated on: 24.01.2022 08:57:25
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
// This is auto-generated code.
|
// This is auto-generated code.
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// This code was generated by Entity Developer tool using EF Core template.
|
// This code was generated by Entity Developer tool using EF Core template.
|
||||||
// Code is generated on: 10.01.2022 13:40:19
|
// Code is generated on: 24.01.2022 08:57:25
|
||||||
//
|
//
|
||||||
// Changes to this file may cause incorrect behavior and will be lost if
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
// the code is regenerated.
|
// the code is regenerated.
|
||||||
@@ -60,6 +60,24 @@ namespace FoodsharingSiegen.Server.Data
|
|||||||
set;
|
set;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual DbSet<InteractionProcess> InteractionProcesses
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
|
||||||
|
public virtual DbSet<Prospect> Prospects
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
|
||||||
|
public virtual DbSet<InteractionDate> InteractionDates
|
||||||
|
{
|
||||||
|
get;
|
||||||
|
set;
|
||||||
|
}
|
||||||
|
|
||||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
{
|
{
|
||||||
base.OnModelCreating(modelBuilder);
|
base.OnModelCreating(modelBuilder);
|
||||||
@@ -67,6 +85,15 @@ namespace FoodsharingSiegen.Server.Data
|
|||||||
this.UserMapping(modelBuilder);
|
this.UserMapping(modelBuilder);
|
||||||
this.CustomizeUserMapping(modelBuilder);
|
this.CustomizeUserMapping(modelBuilder);
|
||||||
|
|
||||||
|
this.InteractionProcessMapping(modelBuilder);
|
||||||
|
this.CustomizeInteractionProcessMapping(modelBuilder);
|
||||||
|
|
||||||
|
this.ProspectMapping(modelBuilder);
|
||||||
|
this.CustomizeProspectMapping(modelBuilder);
|
||||||
|
|
||||||
|
this.InteractionDateMapping(modelBuilder);
|
||||||
|
this.CustomizeInteractionDateMapping(modelBuilder);
|
||||||
|
|
||||||
RelationshipsMapping(modelBuilder);
|
RelationshipsMapping(modelBuilder);
|
||||||
CustomizeMapping(ref modelBuilder);
|
CustomizeMapping(ref modelBuilder);
|
||||||
}
|
}
|
||||||
@@ -77,6 +104,11 @@ namespace FoodsharingSiegen.Server.Data
|
|||||||
{
|
{
|
||||||
modelBuilder.Entity<User>().ToTable(@"Users");
|
modelBuilder.Entity<User>().ToTable(@"Users");
|
||||||
modelBuilder.Entity<User>().Property(x => x.Id).HasColumnName(@"Id").IsRequired().ValueGeneratedOnAdd();
|
modelBuilder.Entity<User>().Property(x => x.Id).HasColumnName(@"Id").IsRequired().ValueGeneratedOnAdd();
|
||||||
|
modelBuilder.Entity<User>().Property(x => x.Mail).HasColumnName(@"Mail").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<User>().Property(x => x.Type).HasColumnName(@"Type").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<User>().Property(x => x.Verified).HasColumnName(@"Verified").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<User>().Property(x => x.Name).HasColumnName(@"Name").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<User>().Property(x => x.Created).HasColumnName(@"Created").IsRequired().ValueGeneratedNever();
|
||||||
modelBuilder.Entity<User>().HasKey(@"Id");
|
modelBuilder.Entity<User>().HasKey(@"Id");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,8 +116,70 @@ namespace FoodsharingSiegen.Server.Data
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region InteractionProcess Mapping
|
||||||
|
|
||||||
|
private void InteractionProcessMapping(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
modelBuilder.Entity<InteractionProcess>().ToTable(@"InteractionProcesses");
|
||||||
|
modelBuilder.Entity<InteractionProcess>().Property(x => x.Id).HasColumnName(@"Id").IsRequired().ValueGeneratedOnAdd();
|
||||||
|
modelBuilder.Entity<InteractionProcess>().Property(x => x.EinAb1Id).HasColumnName(@"EinAb1Id").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<InteractionProcess>().Property(x => x.EinAb2Id).HasColumnName(@"EinAb2Id").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<InteractionProcess>().Property(x => x.EinAb3Id).HasColumnName(@"EinAb3Id").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<InteractionProcess>().Property(x => x.WelcomeId).HasColumnName(@"WelcomeId").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<InteractionProcess>().Property(x => x.VerifyId).HasColumnName(@"VerifyId").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<InteractionProcess>().Property(x => x.PassId).HasColumnName(@"PassId").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<InteractionProcess>().HasKey(@"Id");
|
||||||
|
}
|
||||||
|
|
||||||
|
partial void CustomizeInteractionProcessMapping(ModelBuilder modelBuilder);
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Prospect Mapping
|
||||||
|
|
||||||
|
private void ProspectMapping(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
modelBuilder.Entity<Prospect>().ToTable(@"Prospects");
|
||||||
|
modelBuilder.Entity<Prospect>().Property(x => x.Id).HasColumnName(@"Id").IsRequired().ValueGeneratedOnAdd();
|
||||||
|
modelBuilder.Entity<Prospect>().Property(x => x.FsId).HasColumnName(@"FsId").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<Prospect>().Property(x => x.Name).HasColumnName(@"Name").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<Prospect>().Property(x => x.ProgressId).HasColumnName(@"ProgressId").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<Prospect>().HasKey(@"Id");
|
||||||
|
}
|
||||||
|
|
||||||
|
partial void CustomizeProspectMapping(ModelBuilder modelBuilder);
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region InteractionDate Mapping
|
||||||
|
|
||||||
|
private void InteractionDateMapping(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
modelBuilder.Entity<InteractionDate>().ToTable(@"InteractionDates");
|
||||||
|
modelBuilder.Entity<InteractionDate>().Property(x => x.Id).HasColumnName(@"Id").IsRequired().ValueGeneratedOnAdd();
|
||||||
|
modelBuilder.Entity<InteractionDate>().Property(x => x.Date).HasColumnName(@"Date").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<InteractionDate>().Property(x => x.UserId).HasColumnName(@"UserId").ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<InteractionDate>().HasKey(@"Id");
|
||||||
|
}
|
||||||
|
|
||||||
|
partial void CustomizeInteractionDateMapping(ModelBuilder modelBuilder);
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
private void RelationshipsMapping(ModelBuilder modelBuilder)
|
private void RelationshipsMapping(ModelBuilder modelBuilder)
|
||||||
{
|
{
|
||||||
|
modelBuilder.Entity<User>().HasMany(x => x.InteractionDates).WithOne(op => op.User).HasForeignKey(@"UserId").IsRequired(true);
|
||||||
|
|
||||||
|
modelBuilder.Entity<InteractionProcess>().HasOne(x => x.EinAb1).WithOne().HasPrincipalKey(typeof(InteractionProcess), @"EinAb1Id").HasForeignKey(typeof(InteractionDate), @"Id").IsRequired(true);
|
||||||
|
modelBuilder.Entity<InteractionProcess>().HasOne(x => x.EinAb2).WithOne().HasPrincipalKey(typeof(InteractionProcess), @"EinAb2Id").HasForeignKey(typeof(InteractionDate), @"Id").IsRequired(true);
|
||||||
|
modelBuilder.Entity<InteractionProcess>().HasOne(x => x.EinAb3).WithOne().HasPrincipalKey(typeof(InteractionProcess), @"EinAb3Id").HasForeignKey(typeof(InteractionDate), @"Id").IsRequired(true);
|
||||||
|
modelBuilder.Entity<InteractionProcess>().HasOne(x => x.Welcome).WithOne().HasPrincipalKey(typeof(InteractionProcess), @"WelcomeId").HasForeignKey(typeof(InteractionDate), @"Id").IsRequired(true);
|
||||||
|
modelBuilder.Entity<InteractionProcess>().HasOne(x => x.Verify).WithOne().HasPrincipalKey(typeof(InteractionProcess), @"VerifyId").HasForeignKey(typeof(InteractionDate), @"Id").IsRequired(true);
|
||||||
|
modelBuilder.Entity<InteractionProcess>().HasOne(x => x.Pass).WithOne().HasPrincipalKey(typeof(InteractionProcess), @"PassId").HasForeignKey(typeof(InteractionDate), @"Id").IsRequired(true);
|
||||||
|
|
||||||
|
modelBuilder.Entity<Prospect>().HasOne(x => x.Progress).WithOne().HasPrincipalKey(typeof(Prospect), @"ProgressId").HasForeignKey(typeof(InteractionProcess), @"Id").IsRequired(true);
|
||||||
|
|
||||||
|
modelBuilder.Entity<InteractionDate>().HasOne(x => x.User).WithMany(op => op.InteractionDates).HasForeignKey(@"UserId").IsRequired(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
partial void CustomizeMapping(ref ModelBuilder modelBuilder);
|
partial void CustomizeMapping(ref ModelBuilder modelBuilder);
|
||||||
|
|||||||
@@ -11,8 +11,16 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Blazorise.DataGrid" Version="0.9.5.4" />
|
||||||
|
<PackageReference Include="Blazorise.Icons.Material" Version="0.9.5.4" />
|
||||||
|
<PackageReference Include="Blazorise.Material" Version="0.9.5.4" />
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="6.0.1" />
|
||||||
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.1">
|
||||||
|
<PrivateAssets>all</PrivateAssets>
|
||||||
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
|
</PackageReference>
|
||||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.1" />
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="6.0.1" />
|
||||||
|
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
234
FoodsharingSiegen.Server/Migrations/20220124091416_Init.Designer.cs
generated
Normal file
234
FoodsharingSiegen.Server/Migrations/20220124091416_Init.Designer.cs
generated
Normal file
@@ -0,0 +1,234 @@
|
|||||||
|
// <auto-generated />
|
||||||
|
using System;
|
||||||
|
using FoodsharingSiegen.Server.Data;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace FoodsharingSiegen.Server.Migrations
|
||||||
|
{
|
||||||
|
[DbContext(typeof(FsContext))]
|
||||||
|
[Migration("20220124091416_Init")]
|
||||||
|
partial class Init
|
||||||
|
{
|
||||||
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
#pragma warning disable 612, 618
|
||||||
|
modelBuilder.HasAnnotation("ProductVersion", "6.0.1");
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.InteractionDate", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Id");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Date")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Date");
|
||||||
|
|
||||||
|
b.Property<Guid>("UserId")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("UserId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("InteractionDates", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.InteractionProcess", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Id");
|
||||||
|
|
||||||
|
b.Property<Guid>("EinAb1Id")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("EinAb1Id");
|
||||||
|
|
||||||
|
b.Property<Guid>("EinAb2Id")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("EinAb2Id");
|
||||||
|
|
||||||
|
b.Property<Guid>("EinAb3Id")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("EinAb3Id");
|
||||||
|
|
||||||
|
b.Property<Guid>("PassId")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("PassId");
|
||||||
|
|
||||||
|
b.Property<Guid>("VerifyId")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("VerifyId");
|
||||||
|
|
||||||
|
b.Property<Guid>("WelcomeId")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("WelcomeId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("InteractionProcesses", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Prospect", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Id");
|
||||||
|
|
||||||
|
b.Property<int>("FsId")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnName("FsId");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Name");
|
||||||
|
|
||||||
|
b.Property<Guid>("ProgressId")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("ProgressId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Prospects", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.User", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Id");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Created")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Created");
|
||||||
|
|
||||||
|
b.Property<string>("Mail")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Mail");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Name");
|
||||||
|
|
||||||
|
b.Property<int>("Type")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnName("Type");
|
||||||
|
|
||||||
|
b.Property<bool>("Verified")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnName("Verified");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Users", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.InteractionDate", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.InteractionProcess", null)
|
||||||
|
.WithOne("EinAb1")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionDate", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "EinAb1Id")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.InteractionProcess", null)
|
||||||
|
.WithOne("EinAb2")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionDate", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "EinAb2Id")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired()
|
||||||
|
.HasConstraintName("FK_InteractionDates_InteractionProcesses_Id1");
|
||||||
|
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.InteractionProcess", null)
|
||||||
|
.WithOne("EinAb3")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionDate", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "EinAb3Id")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired()
|
||||||
|
.HasConstraintName("FK_InteractionDates_InteractionProcesses_Id2");
|
||||||
|
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.InteractionProcess", null)
|
||||||
|
.WithOne("Pass")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionDate", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "PassId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired()
|
||||||
|
.HasConstraintName("FK_InteractionDates_InteractionProcesses_Id3");
|
||||||
|
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.InteractionProcess", null)
|
||||||
|
.WithOne("Verify")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionDate", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "VerifyId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired()
|
||||||
|
.HasConstraintName("FK_InteractionDates_InteractionProcesses_Id4");
|
||||||
|
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.InteractionProcess", null)
|
||||||
|
.WithOne("Welcome")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionDate", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "WelcomeId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired()
|
||||||
|
.HasConstraintName("FK_InteractionDates_InteractionProcesses_Id5");
|
||||||
|
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.User", "User")
|
||||||
|
.WithMany("InteractionDates")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.InteractionProcess", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.Prospect", null)
|
||||||
|
.WithOne("Progress")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.Prospect", "ProgressId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.InteractionProcess", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("EinAb1");
|
||||||
|
|
||||||
|
b.Navigation("EinAb2");
|
||||||
|
|
||||||
|
b.Navigation("EinAb3");
|
||||||
|
|
||||||
|
b.Navigation("Pass");
|
||||||
|
|
||||||
|
b.Navigation("Verify");
|
||||||
|
|
||||||
|
b.Navigation("Welcome");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Prospect", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Progress");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.User", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("InteractionDates");
|
||||||
|
});
|
||||||
|
#pragma warning restore 612, 618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
148
FoodsharingSiegen.Server/Migrations/20220124091416_Init.cs
Normal file
148
FoodsharingSiegen.Server/Migrations/20220124091416_Init.cs
Normal file
@@ -0,0 +1,148 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace FoodsharingSiegen.Server.Migrations
|
||||||
|
{
|
||||||
|
public partial class Init : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Prospects",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
|
FsId = table.Column<int>(type: "INTEGER", nullable: false),
|
||||||
|
Name = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
ProgressId = table.Column<Guid>(type: "TEXT", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Prospects", x => x.Id);
|
||||||
|
table.UniqueConstraint("AK_Prospects_ProgressId", x => x.ProgressId);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "Users",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
|
Mail = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
Type = table.Column<int>(type: "INTEGER", nullable: false),
|
||||||
|
Verified = table.Column<bool>(type: "INTEGER", nullable: false),
|
||||||
|
Name = table.Column<string>(type: "TEXT", nullable: false),
|
||||||
|
Created = table.Column<DateTime>(type: "TEXT", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_Users", x => x.Id);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "InteractionProcesses",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
|
EinAb1Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
|
EinAb2Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
|
EinAb3Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
|
WelcomeId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
|
VerifyId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
|
PassId = table.Column<Guid>(type: "TEXT", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_InteractionProcesses", x => x.Id);
|
||||||
|
table.UniqueConstraint("AK_InteractionProcesses_EinAb1Id", x => x.EinAb1Id);
|
||||||
|
table.UniqueConstraint("AK_InteractionProcesses_EinAb2Id", x => x.EinAb2Id);
|
||||||
|
table.UniqueConstraint("AK_InteractionProcesses_EinAb3Id", x => x.EinAb3Id);
|
||||||
|
table.UniqueConstraint("AK_InteractionProcesses_PassId", x => x.PassId);
|
||||||
|
table.UniqueConstraint("AK_InteractionProcesses_VerifyId", x => x.VerifyId);
|
||||||
|
table.UniqueConstraint("AK_InteractionProcesses_WelcomeId", x => x.WelcomeId);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_InteractionProcesses_Prospects_Id",
|
||||||
|
column: x => x.Id,
|
||||||
|
principalTable: "Prospects",
|
||||||
|
principalColumn: "ProgressId",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "InteractionDates",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||||
|
Date = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||||
|
UserId = table.Column<Guid>(type: "TEXT", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_InteractionDates", x => x.Id);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_InteractionDates_InteractionProcesses_Id",
|
||||||
|
column: x => x.Id,
|
||||||
|
principalTable: "InteractionProcesses",
|
||||||
|
principalColumn: "EinAb1Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_InteractionDates_InteractionProcesses_Id1",
|
||||||
|
column: x => x.Id,
|
||||||
|
principalTable: "InteractionProcesses",
|
||||||
|
principalColumn: "EinAb2Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_InteractionDates_InteractionProcesses_Id2",
|
||||||
|
column: x => x.Id,
|
||||||
|
principalTable: "InteractionProcesses",
|
||||||
|
principalColumn: "EinAb3Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_InteractionDates_InteractionProcesses_Id3",
|
||||||
|
column: x => x.Id,
|
||||||
|
principalTable: "InteractionProcesses",
|
||||||
|
principalColumn: "PassId",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_InteractionDates_InteractionProcesses_Id4",
|
||||||
|
column: x => x.Id,
|
||||||
|
principalTable: "InteractionProcesses",
|
||||||
|
principalColumn: "VerifyId",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_InteractionDates_InteractionProcesses_Id5",
|
||||||
|
column: x => x.Id,
|
||||||
|
principalTable: "InteractionProcesses",
|
||||||
|
principalColumn: "WelcomeId",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_InteractionDates_Users_UserId",
|
||||||
|
column: x => x.UserId,
|
||||||
|
principalTable: "Users",
|
||||||
|
principalColumn: "Id",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_InteractionDates_UserId",
|
||||||
|
table: "InteractionDates",
|
||||||
|
column: "UserId");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "InteractionDates");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "InteractionProcesses");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Users");
|
||||||
|
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "Prospects");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
232
FoodsharingSiegen.Server/Migrations/FsContextModelSnapshot.cs
Normal file
232
FoodsharingSiegen.Server/Migrations/FsContextModelSnapshot.cs
Normal file
@@ -0,0 +1,232 @@
|
|||||||
|
// <auto-generated />
|
||||||
|
using System;
|
||||||
|
using FoodsharingSiegen.Server.Data;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace FoodsharingSiegen.Server.Migrations
|
||||||
|
{
|
||||||
|
[DbContext(typeof(FsContext))]
|
||||||
|
partial class FsContextModelSnapshot : ModelSnapshot
|
||||||
|
{
|
||||||
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
#pragma warning disable 612, 618
|
||||||
|
modelBuilder.HasAnnotation("ProductVersion", "6.0.1");
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.InteractionDate", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Id");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Date")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Date");
|
||||||
|
|
||||||
|
b.Property<Guid>("UserId")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("UserId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.HasIndex("UserId");
|
||||||
|
|
||||||
|
b.ToTable("InteractionDates", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.InteractionProcess", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Id");
|
||||||
|
|
||||||
|
b.Property<Guid>("EinAb1Id")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("EinAb1Id");
|
||||||
|
|
||||||
|
b.Property<Guid>("EinAb2Id")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("EinAb2Id");
|
||||||
|
|
||||||
|
b.Property<Guid>("EinAb3Id")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("EinAb3Id");
|
||||||
|
|
||||||
|
b.Property<Guid>("PassId")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("PassId");
|
||||||
|
|
||||||
|
b.Property<Guid>("VerifyId")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("VerifyId");
|
||||||
|
|
||||||
|
b.Property<Guid>("WelcomeId")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("WelcomeId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("InteractionProcesses", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Prospect", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Id");
|
||||||
|
|
||||||
|
b.Property<int>("FsId")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnName("FsId");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Name");
|
||||||
|
|
||||||
|
b.Property<Guid>("ProgressId")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("ProgressId");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Prospects", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.User", b =>
|
||||||
|
{
|
||||||
|
b.Property<Guid>("Id")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Id");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Created")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Created");
|
||||||
|
|
||||||
|
b.Property<string>("Mail")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Mail");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Name");
|
||||||
|
|
||||||
|
b.Property<int>("Type")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnName("Type");
|
||||||
|
|
||||||
|
b.Property<bool>("Verified")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnName("Verified");
|
||||||
|
|
||||||
|
b.HasKey("Id");
|
||||||
|
|
||||||
|
b.ToTable("Users", (string)null);
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.InteractionDate", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.InteractionProcess", null)
|
||||||
|
.WithOne("EinAb1")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionDate", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "EinAb1Id")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.InteractionProcess", null)
|
||||||
|
.WithOne("EinAb2")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionDate", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "EinAb2Id")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired()
|
||||||
|
.HasConstraintName("FK_InteractionDates_InteractionProcesses_Id1");
|
||||||
|
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.InteractionProcess", null)
|
||||||
|
.WithOne("EinAb3")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionDate", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "EinAb3Id")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired()
|
||||||
|
.HasConstraintName("FK_InteractionDates_InteractionProcesses_Id2");
|
||||||
|
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.InteractionProcess", null)
|
||||||
|
.WithOne("Pass")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionDate", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "PassId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired()
|
||||||
|
.HasConstraintName("FK_InteractionDates_InteractionProcesses_Id3");
|
||||||
|
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.InteractionProcess", null)
|
||||||
|
.WithOne("Verify")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionDate", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "VerifyId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired()
|
||||||
|
.HasConstraintName("FK_InteractionDates_InteractionProcesses_Id4");
|
||||||
|
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.InteractionProcess", null)
|
||||||
|
.WithOne("Welcome")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionDate", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "WelcomeId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired()
|
||||||
|
.HasConstraintName("FK_InteractionDates_InteractionProcesses_Id5");
|
||||||
|
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.User", "User")
|
||||||
|
.WithMany("InteractionDates")
|
||||||
|
.HasForeignKey("UserId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.InteractionProcess", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("FoodsharingSiegen.Contracts.Entity.Prospect", null)
|
||||||
|
.WithOne("Progress")
|
||||||
|
.HasForeignKey("FoodsharingSiegen.Contracts.Entity.InteractionProcess", "Id")
|
||||||
|
.HasPrincipalKey("FoodsharingSiegen.Contracts.Entity.Prospect", "ProgressId")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.InteractionProcess", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("EinAb1");
|
||||||
|
|
||||||
|
b.Navigation("EinAb2");
|
||||||
|
|
||||||
|
b.Navigation("EinAb3");
|
||||||
|
|
||||||
|
b.Navigation("Pass");
|
||||||
|
|
||||||
|
b.Navigation("Verify");
|
||||||
|
|
||||||
|
b.Navigation("Welcome");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Prospect", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Progress");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.User", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("InteractionDates");
|
||||||
|
});
|
||||||
|
#pragma warning restore 612, 618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user