Database updates
This commit is contained in:
@@ -950,14 +950,33 @@
|
||||
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
|
||||
</Oid>
|
||||
</Model>
|
||||
<Model xsi:type="EnumTypeMemberVwModel">
|
||||
<CustomProperties>
|
||||
<OID>51</OID>
|
||||
<Parent>44</Parent>
|
||||
</CustomProperties>
|
||||
<Children />
|
||||
<Location>
|
||||
<X>0.5 px</X>
|
||||
<Y>108.5 px</Y>
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>144 px</Width>
|
||||
<Height>18 px</Height>
|
||||
</Size>
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
<Path>4c471e6c-91e8-489e-8a3d-41bee5acf5e3</Path>
|
||||
<TypeName>EntityDeveloper.EnumTypeMember</TypeName>
|
||||
</Oid>
|
||||
</Model>
|
||||
</Children>
|
||||
<Size>
|
||||
<Width>145 px</Width>
|
||||
<Height>108 px</Height>
|
||||
<Height>126 px</Height>
|
||||
</Size>
|
||||
<MaxSize>
|
||||
<Width>0 px</Width>
|
||||
<Height>109 px</Height>
|
||||
<Height>127 px</Height>
|
||||
</MaxSize>
|
||||
</Model>
|
||||
</Children>
|
||||
@@ -967,15 +986,15 @@
|
||||
</Location>
|
||||
<Size>
|
||||
<Width>150 px</Width>
|
||||
<Height>157 px</Height>
|
||||
<Height>175 px</Height>
|
||||
</Size>
|
||||
<MinSize>
|
||||
<Width>100 px</Width>
|
||||
<Height>157 px</Height>
|
||||
<Height>175 px</Height>
|
||||
</MinSize>
|
||||
<MaxSize>
|
||||
<Width>800 px</Width>
|
||||
<Height>157 px</Height>
|
||||
<Height>175 px</Height>
|
||||
</MaxSize>
|
||||
<Ports />
|
||||
<Oid xsi:type="SchemaModelOID">
|
||||
@@ -986,11 +1005,11 @@
|
||||
</Model>
|
||||
<Model xsi:type="AssociationVwModel">
|
||||
<CustomProperties>
|
||||
<OID>51</OID>
|
||||
<OID>52</OID>
|
||||
<OutModel>19</OutModel>
|
||||
<InModel>29</InModel>
|
||||
<OutPort>52</OutPort>
|
||||
<InPort>53</InPort>
|
||||
<OutPort>53</OutPort>
|
||||
<InPort>54</InPort>
|
||||
<Parent>0</Parent>
|
||||
</CustomProperties>
|
||||
<PortAnchors>
|
||||
@@ -1002,7 +1021,7 @@
|
||||
<Anchors>Top Bottom</Anchors>
|
||||
<Align>Right</Align>
|
||||
<CustomProperties>
|
||||
<OID>52</OID>
|
||||
<OID>53</OID>
|
||||
<PortType>FloatAnchor</PortType>
|
||||
</CustomProperties>
|
||||
</Port>
|
||||
@@ -1014,7 +1033,7 @@
|
||||
<Anchors>Top Bottom</Anchors>
|
||||
<Align>Left</Align>
|
||||
<CustomProperties>
|
||||
<OID>53</OID>
|
||||
<OID>54</OID>
|
||||
<PortType>FloatAnchor</PortType>
|
||||
</CustomProperties>
|
||||
</Port>
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<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" />
|
||||
<Member Name="Complete" Value="70" p1:Guid="4c471e6c-91e8-489e-8a3d-41bee5acf5e3" />
|
||||
</EnumType>
|
||||
</class>
|
||||
<class name="User" entity-set="Users" p1:Guid="f956d4e9-7523-4b77-96be-10cbe0cc6929">
|
||||
@@ -54,7 +55,7 @@
|
||||
<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">
|
||||
<property name="Memo" type="String" p1:nullable="True" p1:ValidateRequired="false" p1:Guid="e00e58d3-7b35-4f5e-84fe-09d228801093">
|
||||
<column name="" />
|
||||
</property>
|
||||
</class>
|
||||
|
||||
@@ -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: 02.04.2022 10:49:14
|
||||
// Code is generated on: 02.04.2022 14:16:15
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
||||
@@ -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: 02.04.2022 10:49:14
|
||||
// Code is generated on: 02.04.2022 14:16:15
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
||||
@@ -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: 02.04.2022 10:49:14
|
||||
// Code is generated on: 02.04.2022 14:16:15
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
||||
@@ -1,15 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Data.Common;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
namespace FoodsharingSiegen.Contracts.Entity
|
||||
namespace FoodsharingSiegen.Contracts.Entity
|
||||
{
|
||||
|
||||
public partial class Prospect
|
||||
{
|
||||
public bool Complete => Interactions?.Any(x => x.Type == InteractionType.Complete) == true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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: 02.04.2022 10:49:14
|
||||
// Code is generated on: 02.04.2022 14:16:15
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
||||
@@ -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: 02.04.2022 10:49:14
|
||||
// Code is generated on: 02.04.2022 14:16:15
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
|
||||
@@ -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: 02.04.2022 10:49:14
|
||||
// Code is generated on: 02.04.2022 14:16:15
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
@@ -117,7 +117,7 @@ namespace FoodsharingSiegen.Server.Data
|
||||
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>().Property(x => x.Memo).HasColumnName(@"Memo").ValueGeneratedNever();
|
||||
modelBuilder.Entity<Prospect>().HasKey(@"Id");
|
||||
}
|
||||
|
||||
|
||||
156
FoodsharingSiegen.Server/Migrations/20220402121638_memonull.Designer.cs
generated
Normal file
156
FoodsharingSiegen.Server/Migrations/20220402121638_memonull.Designer.cs
generated
Normal file
@@ -0,0 +1,156 @@
|
||||
// <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("20220402121638_memonull")]
|
||||
partial class memonull
|
||||
{
|
||||
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")
|
||||
.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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FoodsharingSiegen.Server.Migrations
|
||||
{
|
||||
public partial class memonull : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Memo",
|
||||
table: "Prospects",
|
||||
type: "TEXT",
|
||||
nullable: true,
|
||||
oldClrType: typeof(string),
|
||||
oldType: "TEXT");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<string>(
|
||||
name: "Memo",
|
||||
table: "Prospects",
|
||||
type: "TEXT",
|
||||
nullable: false,
|
||||
defaultValue: "",
|
||||
oldClrType: typeof(string),
|
||||
oldType: "TEXT",
|
||||
oldNullable: true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -69,7 +69,6 @@ namespace FoodsharingSiegen.Server.Migrations
|
||||
.HasColumnName("FsId");
|
||||
|
||||
b.Property<string>("Memo")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("Memo");
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user