Database Update

This commit is contained in:
Andre Beging
2022-04-02 12:53:49 +02:00
parent d3bc96b745
commit eb4bb402ba
15 changed files with 598 additions and 91 deletions

View File

@@ -306,6 +306,25 @@
<Width>144 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>b9fd95ad-d147-41df-94c7-3eb0c8eadb90</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid>
</Model>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>18</OID>
<Parent>12</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>90.5 px</Y>
</Location>
<Size>
<Width>144 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>b61df6d8-6f93-4605-bcb8-40e631176cd7</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
@@ -314,11 +333,11 @@
</Children>
<Size>
<Width>145 px</Width>
<Height>90 px</Height>
<Height>108 px</Height>
</Size>
<MaxSize>
<Width>0 px</Width>
<Height>91 px</Height>
<Height>109 px</Height>
</MaxSize>
</Model>
</Children>
@@ -328,15 +347,15 @@
</Location>
<Size>
<Width>150 px</Width>
<Height>139 px</Height>
<Height>157 px</Height>
</Size>
<MinSize>
<Width>100 px</Width>
<Height>139 px</Height>
<Height>157 px</Height>
</MinSize>
<MaxSize>
<Width>800 px</Width>
<Height>139 px</Height>
<Height>157 px</Height>
</MaxSize>
<Ports />
<Oid xsi:type="SchemaModelOID">
@@ -347,25 +366,25 @@
</Model>
<Model xsi:type="ClassVwModel">
<CustomProperties>
<OID>18</OID>
<OID>19</OID>
<Parent>0</Parent>
</CustomProperties>
<Children>
<Model xsi:type="PropertiesVwModel">
<CustomProperties>
<OID>19</OID>
<Parent>18</Parent>
<OID>20</OID>
<Parent>19</Parent>
</CustomProperties>
<Children>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>20</OID>
<Parent>19</Parent>
<OID>21</OID>
<Parent>20</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>0.5 px</Y>
<Y>0.500000000000028 px</Y>
</Location>
<Size>
<Width>144 px</Width>
@@ -378,8 +397,8 @@
</Model>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>21</OID>
<Parent>19</Parent>
<OID>22</OID>
<Parent>20</Parent>
</CustomProperties>
<Children />
<Location>
@@ -397,8 +416,8 @@
</Model>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>22</OID>
<Parent>19</Parent>
<OID>23</OID>
<Parent>20</Parent>
</CustomProperties>
<Children />
<Location>
@@ -416,8 +435,8 @@
</Model>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>23</OID>
<Parent>19</Parent>
<OID>24</OID>
<Parent>20</Parent>
</CustomProperties>
<Children />
<Location>
@@ -433,28 +452,74 @@
<TypeName>EntityDeveloper.EntityFrameworkCore.EntityProperty</TypeName>
</Oid>
</Model>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>25</OID>
<Parent>20</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>72.5 px</Y>
</Location>
<Size>
<Width>144 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>12d616f2-eee0-4dbc-9a24-fecb7e65e9ba</Path>
<TypeName>EntityDeveloper.EntityFrameworkCore.EntityProperty</TypeName>
</Oid>
</Model>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>26</OID>
<Parent>20</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>90.5 px</Y>
</Location>
<Size>
<Width>144 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>e00e58d3-7b35-4f5e-84fe-09d228801093</Path>
<TypeName>EntityDeveloper.EntityFrameworkCore.EntityProperty</TypeName>
</Oid>
</Model>
</Children>
<Location>
<X>0 px</X>
<Y>2.8421709430404E-14 px</Y>
</Location>
<Size>
<Width>145 px</Width>
<Height>73 px</Height>
<Height>109 px</Height>
</Size>
<MaxSize>
<Width>0 px</Width>
<Height>73 px</Height>
<Height>109 px</Height>
</MaxSize>
</Model>
<Model xsi:type="RelationPropertiesVwModel">
<CustomProperties>
<OID>24</OID>
<Parent>18</Parent>
<OID>27</OID>
<Parent>19</Parent>
</CustomProperties>
<Children>
<Model xsi:type="RelationPropertyVwModel">
<CustomProperties>
<OID>25</OID>
<Parent>24</Parent>
<OID>28</OID>
<Parent>27</Parent>
</CustomProperties>
<Children />
<Location>
<X>0 px</X>
<Y>2.8421709430404E-14 px</Y>
</Location>
<Size>
<Width>144 px</Width>
<Height>18 px</Height>
@@ -467,7 +532,7 @@
</Children>
<Location>
<X>0 px</X>
<Y>72 px</Y>
<Y>108 px</Y>
</Location>
<Size>
<Width>145 px</Width>
@@ -486,15 +551,15 @@
</Location>
<Size>
<Width>150 px</Width>
<Height>158 px</Height>
<Height>194 px</Height>
</Size>
<MinSize>
<Width>100 px</Width>
<Height>158 px</Height>
<Height>194 px</Height>
</MinSize>
<MaxSize>
<Width>800 px</Width>
<Height>158 px</Height>
<Height>194 px</Height>
</MaxSize>
<Ports />
<Oid xsi:type="SchemaModelOID">
@@ -505,20 +570,20 @@
</Model>
<Model xsi:type="ClassVwModel">
<CustomProperties>
<OID>26</OID>
<OID>29</OID>
<Parent>0</Parent>
</CustomProperties>
<Children>
<Model xsi:type="PropertiesVwModel">
<CustomProperties>
<OID>27</OID>
<Parent>26</Parent>
<OID>30</OID>
<Parent>29</Parent>
</CustomProperties>
<Children>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>28</OID>
<Parent>27</Parent>
<OID>31</OID>
<Parent>30</Parent>
</CustomProperties>
<Children />
<Location>
@@ -536,8 +601,8 @@
</Model>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>29</OID>
<Parent>27</Parent>
<OID>32</OID>
<Parent>30</Parent>
</CustomProperties>
<Children />
<Location>
@@ -555,8 +620,8 @@
</Model>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>30</OID>
<Parent>27</Parent>
<OID>33</OID>
<Parent>30</Parent>
</CustomProperties>
<Children />
<Location>
@@ -574,8 +639,8 @@
</Model>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>31</OID>
<Parent>27</Parent>
<OID>34</OID>
<Parent>30</Parent>
</CustomProperties>
<Children />
<Location>
@@ -593,8 +658,8 @@
</Model>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>32</OID>
<Parent>27</Parent>
<OID>35</OID>
<Parent>30</Parent>
</CustomProperties>
<Children />
<Location>
@@ -612,8 +677,8 @@
</Model>
<Model xsi:type="PropertyVwModel">
<CustomProperties>
<OID>33</OID>
<Parent>27</Parent>
<OID>36</OID>
<Parent>30</Parent>
</CustomProperties>
<Children />
<Location>
@@ -641,14 +706,14 @@
</Model>
<Model xsi:type="RelationPropertiesVwModel">
<CustomProperties>
<OID>34</OID>
<Parent>26</Parent>
<OID>37</OID>
<Parent>29</Parent>
</CustomProperties>
<Children>
<Model xsi:type="RelationPropertyVwModel">
<CustomProperties>
<OID>35</OID>
<Parent>34</Parent>
<OID>38</OID>
<Parent>37</Parent>
</CustomProperties>
<Children />
<Size>
@@ -662,8 +727,8 @@
</Model>
<Model xsi:type="RelationPropertyVwModel">
<CustomProperties>
<OID>36</OID>
<Parent>34</Parent>
<OID>39</OID>
<Parent>37</Parent>
</CustomProperties>
<Children />
<Location>
@@ -720,11 +785,11 @@
</Model>
<Model xsi:type="AssociationVwModel">
<CustomProperties>
<OID>37</OID>
<OID>40</OID>
<OutModel>1</OutModel>
<InModel>26</InModel>
<OutPort>38</OutPort>
<InPort>39</InPort>
<InModel>29</InModel>
<OutPort>41</OutPort>
<InPort>42</InPort>
<Parent>0</Parent>
</CustomProperties>
<PortAnchors>
@@ -736,7 +801,7 @@
<Anchors>Left Right</Anchors>
<Align>Bottom</Align>
<CustomProperties>
<OID>38</OID>
<OID>41</OID>
<PortType>FloatAnchor</PortType>
</CustomProperties>
</Port>
@@ -748,7 +813,7 @@
<Anchors>Left Right</Anchors>
<Align>Top</Align>
<CustomProperties>
<OID>39</OID>
<OID>42</OID>
<PortType>FloatAnchor</PortType>
</CustomProperties>
</Port>
@@ -761,20 +826,20 @@
</Model>
<Model xsi:type="EnumTypeVwModel">
<CustomProperties>
<OID>40</OID>
<OID>43</OID>
<Parent>0</Parent>
</CustomProperties>
<Children>
<Model xsi:type="PropertiesVwModel">
<CustomProperties>
<OID>41</OID>
<Parent>40</Parent>
<OID>44</OID>
<Parent>43</Parent>
</CustomProperties>
<Children>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>42</OID>
<Parent>41</Parent>
<OID>45</OID>
<Parent>44</Parent>
</CustomProperties>
<Children />
<Location>
@@ -792,8 +857,8 @@
</Model>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>43</OID>
<Parent>41</Parent>
<OID>46</OID>
<Parent>44</Parent>
</CustomProperties>
<Children />
<Location>
@@ -811,8 +876,8 @@
</Model>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>44</OID>
<Parent>41</Parent>
<OID>47</OID>
<Parent>44</Parent>
</CustomProperties>
<Children />
<Location>
@@ -830,8 +895,8 @@
</Model>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>45</OID>
<Parent>41</Parent>
<OID>48</OID>
<Parent>44</Parent>
</CustomProperties>
<Children />
<Location>
@@ -847,14 +912,52 @@
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid>
</Model>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>49</OID>
<Parent>44</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>72.5 px</Y>
</Location>
<Size>
<Width>144 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>9cc2e8a4-4b74-4aaa-860c-7b7a8b643174</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid>
</Model>
<Model xsi:type="EnumTypeMemberVwModel">
<CustomProperties>
<OID>50</OID>
<Parent>44</Parent>
</CustomProperties>
<Children />
<Location>
<X>0.5 px</X>
<Y>90.5 px</Y>
</Location>
<Size>
<Width>144 px</Width>
<Height>18 px</Height>
</Size>
<Oid xsi:type="SchemaModelOID">
<Path>21fa1cd1-2e3c-4a85-bd1b-5780549d0835</Path>
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
</Oid>
</Model>
</Children>
<Size>
<Width>145 px</Width>
<Height>72 px</Height>
<Height>108 px</Height>
</Size>
<MaxSize>
<Width>0 px</Width>
<Height>73 px</Height>
<Height>109 px</Height>
</MaxSize>
</Model>
</Children>
@@ -864,15 +967,15 @@
</Location>
<Size>
<Width>150 px</Width>
<Height>121 px</Height>
<Height>157 px</Height>
</Size>
<MinSize>
<Width>100 px</Width>
<Height>121 px</Height>
<Height>157 px</Height>
</MinSize>
<MaxSize>
<Width>800 px</Width>
<Height>121 px</Height>
<Height>157 px</Height>
</MaxSize>
<Ports />
<Oid xsi:type="SchemaModelOID">
@@ -883,23 +986,23 @@
</Model>
<Model xsi:type="AssociationVwModel">
<CustomProperties>
<OID>46</OID>
<OutModel>18</OutModel>
<InModel>26</InModel>
<OutPort>47</OutPort>
<InPort>48</InPort>
<OID>51</OID>
<OutModel>19</OutModel>
<InModel>29</InModel>
<OutPort>52</OutPort>
<InPort>53</InPort>
<Parent>0</Parent>
</CustomProperties>
<PortAnchors>
<Port>
<Location>
<X>0 px</X>
<Y>79 px</Y>
<Y>97 px</Y>
</Location>
<Anchors>Top Bottom</Anchors>
<Align>Right</Align>
<CustomProperties>
<OID>47</OID>
<OID>52</OID>
<PortType>FloatAnchor</PortType>
</CustomProperties>
</Port>
@@ -911,7 +1014,7 @@
<Anchors>Top Bottom</Anchors>
<Align>Left</Align>
<CustomProperties>
<OID>48</OID>
<OID>53</OID>
<PortType>FloatAnchor</PortType>
</CustomProperties>
</Port>
@@ -919,7 +1022,7 @@
<BendPoints>
<PointD>
<X>34 px</X>
<Y>335 px</Y>
<Y>353 px</Y>
</PointD>
<PointD>
<X>34 px</X>

View File

@@ -6,13 +6,16 @@
<Member Name="ReadOnly" Value="10" p1:Guid="fbcf22ae-d06c-4ef4-9375-7da0116c1756" />
<Member Name="WelcomeTeam" Value="20" p1:Guid="5121abf9-8963-4853-92fc-38b4be002089" />
<Member Name="StoreManager" Value="30" p1:Guid="9d01dc6b-a794-47f8-ac79-0ff53861181c" />
<Member Name="Admin" Value="40" p1:Guid="b61df6d8-6f93-4605-bcb8-40e631176cd7" />
<Member Name="Ambassador" Value="40" p1:Guid="b9fd95ad-d147-41df-94c7-3eb0c8eadb90" />
<Member Name="Admin" Value="50" p1:Guid="b61df6d8-6f93-4605-bcb8-40e631176cd7" />
</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" />
<Member Name="IdCheck" Value="30" p1:Guid="b660c84b-a6ad-456d-b43f-eedca6891ff3" />
<Member Name="PrintPass" Value="40" p1:Guid="c259e9b3-519f-42ba-99f7-80ea5b268a6c" />
<Member Name="PdfPass" Value="50" p1:Guid="9cc2e8a4-4b74-4aaa-860c-7b7a8b643174" />
<Member Name="Verify" Value="60" p1:Guid="21fa1cd1-2e3c-4a85-bd1b-5780549d0835" />
</EnumType>
</class>
<class name="User" entity-set="Users" p1:Guid="f956d4e9-7523-4b77-96be-10cbe0cc6929">
@@ -48,6 +51,12 @@
<property name="ProgressId" type="Guid" p1:ValidateRequired="true" p1:Guid="db78282f-9001-4e54-a175-fe4391e714fc">
<column name="" />
</property>
<property name="Created" type="DateTime" p1:ValidateRequired="true" p1:Guid="12d616f2-eee0-4dbc-9a24-fecb7e65e9ba">
<column name="" />
</property>
<property name="Memo" type="String" p1:ValidateRequired="true" p1:Guid="e00e58d3-7b35-4f5e-84fe-09d228801093">
<column name="" />
</property>
</class>
<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">

View File

@@ -2,7 +2,7 @@
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 01.04.2022 16:41:05
// Code is generated on: 02.04.2022 10:49:14
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.

View File

@@ -2,7 +2,7 @@
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 01.04.2022 16:41:05
// Code is generated on: 02.04.2022 10:49:14
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -22,7 +22,10 @@ namespace FoodsharingSiegen.Contracts.Entity
{
EinAb = 10,
Welcome = 20,
Verify = 30,
Pass = 40
IdCheck = 30,
PrintPass = 40,
PdfPass = 50,
Verify = 60,
Complete = 70
}
}

View File

@@ -2,7 +2,7 @@
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 01.04.2022 16:41:05
// Code is generated on: 02.04.2022 10:49:14
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -34,6 +34,10 @@ namespace FoodsharingSiegen.Contracts.Entity
public virtual Guid ProgressId { get; set; }
public virtual DateTime Created { get; set; }
public virtual string Memo { get; set; }
public virtual IList<Interaction> Interactions { get; set; }
#region Extensibility Method Definitions

View File

@@ -2,7 +2,7 @@
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 01.04.2022 16:41:05
// Code is generated on: 02.04.2022 10:49:14
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.

View File

@@ -2,7 +2,7 @@
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 01.04.2022 16:41:05
// Code is generated on: 02.04.2022 10:49:14
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -24,6 +24,7 @@ namespace FoodsharingSiegen.Contracts.Entity
ReadOnly = 10,
WelcomeTeam = 20,
StoreManager = 30,
Admin = 40
Ambassador = 40,
Admin = 50
}
}

View File

@@ -2,7 +2,7 @@
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool using EF Core template.
// Code is generated on: 01.04.2022 16:41:05
// Code is generated on: 02.04.2022 10:49:14
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -116,6 +116,8 @@ namespace FoodsharingSiegen.Server.Data
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>().Property(x => x.Created).HasColumnName(@"Created").IsRequired().ValueGeneratedNever();
modelBuilder.Entity<Prospect>().Property(x => x.Memo).HasColumnName(@"Memo").IsRequired().ValueGeneratedNever();
modelBuilder.Entity<Prospect>().HasKey(@"Id");
}

View File

@@ -0,0 +1,152 @@
// <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("20220401164353_asd")]
partial class asd
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.1");
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Interaction", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT")
.HasColumnName("Id");
b.Property<DateTime>("Date")
.HasColumnType("TEXT")
.HasColumnName("Date");
b.Property<string>("Info")
.HasColumnType("TEXT")
.HasColumnName("Info");
b.Property<Guid>("ProspectId")
.HasColumnType("TEXT")
.HasColumnName("ProspectId");
b.Property<int>("Type")
.HasColumnType("INTEGER")
.HasColumnName("Type");
b.Property<Guid>("UserId")
.HasColumnType("TEXT")
.HasColumnName("UserId");
b.HasKey("Id");
b.HasIndex("ProspectId");
b.HasIndex("UserId");
b.ToTable("Interactions", (string)null);
});
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Prospect", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT")
.HasColumnName("Id");
b.Property<DateTime>("Created")
.HasColumnType("TEXT")
.HasColumnName("Created");
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.Interaction", b =>
{
b.HasOne("FoodsharingSiegen.Contracts.Entity.Prospect", "Prospect")
.WithMany("Interactions")
.HasForeignKey("ProspectId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("FoodsharingSiegen.Contracts.Entity.User", "User")
.WithMany("Interactions")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Prospect");
b.Navigation("User");
});
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Prospect", b =>
{
b.Navigation("Interactions");
});
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.User", b =>
{
b.Navigation("Interactions");
});
#pragma warning restore 612, 618
}
}
}

View File

@@ -0,0 +1,37 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FoodsharingSiegen.Server.Migrations
{
public partial class asd : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "Created",
table: "Prospects",
type: "TEXT",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
migrationBuilder.AddColumn<string>(
name: "Info",
table: "Interactions",
type: "TEXT",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Created",
table: "Prospects");
migrationBuilder.DropColumn(
name: "Info",
table: "Interactions");
}
}
}

View File

@@ -0,0 +1,157 @@
// <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("20220401171855_asdk")]
partial class asdk
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.1");
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Interaction", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT")
.HasColumnName("Id");
b.Property<DateTime>("Date")
.HasColumnType("TEXT")
.HasColumnName("Date");
b.Property<string>("Info")
.HasColumnType("TEXT")
.HasColumnName("Info");
b.Property<Guid>("ProspectId")
.HasColumnType("TEXT")
.HasColumnName("ProspectId");
b.Property<int>("Type")
.HasColumnType("INTEGER")
.HasColumnName("Type");
b.Property<Guid>("UserId")
.HasColumnType("TEXT")
.HasColumnName("UserId");
b.HasKey("Id");
b.HasIndex("ProspectId");
b.HasIndex("UserId");
b.ToTable("Interactions", (string)null);
});
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Prospect", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("TEXT")
.HasColumnName("Id");
b.Property<DateTime>("Created")
.HasColumnType("TEXT")
.HasColumnName("Created");
b.Property<int>("FsId")
.HasColumnType("INTEGER")
.HasColumnName("FsId");
b.Property<string>("Memo")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("Memo");
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.Interaction", b =>
{
b.HasOne("FoodsharingSiegen.Contracts.Entity.Prospect", "Prospect")
.WithMany("Interactions")
.HasForeignKey("ProspectId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("FoodsharingSiegen.Contracts.Entity.User", "User")
.WithMany("Interactions")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Prospect");
b.Navigation("User");
});
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.Prospect", b =>
{
b.Navigation("Interactions");
});
modelBuilder.Entity("FoodsharingSiegen.Contracts.Entity.User", b =>
{
b.Navigation("Interactions");
});
#pragma warning restore 612, 618
}
}
}

View File

@@ -0,0 +1,26 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FoodsharingSiegen.Server.Migrations
{
public partial class asdk : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Memo",
table: "Prospects",
type: "TEXT",
nullable: false,
defaultValue: "");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Memo",
table: "Prospects");
}
}
}

View File

@@ -28,6 +28,10 @@ namespace FoodsharingSiegen.Server.Migrations
.HasColumnType("TEXT")
.HasColumnName("Date");
b.Property<string>("Info")
.HasColumnType("TEXT")
.HasColumnName("Info");
b.Property<Guid>("ProspectId")
.HasColumnType("TEXT")
.HasColumnName("ProspectId");
@@ -56,10 +60,19 @@ namespace FoodsharingSiegen.Server.Migrations
.HasColumnType("TEXT")
.HasColumnName("Id");
b.Property<DateTime>("Created")
.HasColumnType("TEXT")
.HasColumnName("Created");
b.Property<int>("FsId")
.HasColumnType("INTEGER")
.HasColumnName("FsId");
b.Property<string>("Memo")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("Memo");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT")

Binary file not shown.

Binary file not shown.