Database update
This commit is contained in:
@@ -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: 05.04.2022 16:38:00
|
// Code is generated on: 11.04.2022 13:40:57
|
||||||
//
|
//
|
||||||
// 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: 05.04.2022 16:38:00
|
// Code is generated on: 11.04.2022 13:40:57
|
||||||
//
|
//
|
||||||
// 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: 05.04.2022 16:38:00
|
// Code is generated on: 11.04.2022 13:40:57
|
||||||
//
|
//
|
||||||
// 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: 05.04.2022 16:38:00
|
// Code is generated on: 11.04.2022 13:40:57
|
||||||
//
|
//
|
||||||
// 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.
|
||||||
@@ -42,6 +42,8 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
|
|
||||||
public virtual string Groups { get; set; }
|
public virtual string Groups { get; set; }
|
||||||
|
|
||||||
|
public virtual bool ForceLogout { get; set; }
|
||||||
|
|
||||||
public virtual IList<Interaction> Interactions { get; set; }
|
public virtual IList<Interaction> Interactions { get; set; }
|
||||||
|
|
||||||
#region Extensibility Method Definitions
|
#region Extensibility Method Definitions
|
||||||
|
|||||||
@@ -38,5 +38,15 @@ namespace FoodsharingSiegen.Contracts.Entity
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region Public Method Clone
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Clones this instance (a. beging, 11.04.2022)
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>The user</returns>
|
||||||
|
public User Clone() => (User) MemberwiseClone();
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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: 05.04.2022 16:38:00
|
// Code is generated on: 11.04.2022 13:40:57
|
||||||
//
|
//
|
||||||
// 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: 05.04.2022 16:38:00
|
// Code is generated on: 11.04.2022 13:40:57
|
||||||
//
|
//
|
||||||
// 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: 05.04.2022 16:38:00
|
// Code is generated on: 11.04.2022 13:40:57
|
||||||
//
|
//
|
||||||
// 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.
|
||||||
@@ -102,6 +102,7 @@ namespace FoodsharingSiegen.Server.Data
|
|||||||
modelBuilder.Entity<User>().Property(x => x.Created).HasColumnName(@"Created").IsRequired().ValueGeneratedNever();
|
modelBuilder.Entity<User>().Property(x => x.Created).HasColumnName(@"Created").IsRequired().ValueGeneratedNever();
|
||||||
modelBuilder.Entity<User>().Property(x => x.EncryptedPassword).HasColumnName(@"EncryptedPassword").IsRequired().ValueGeneratedNever();
|
modelBuilder.Entity<User>().Property(x => x.EncryptedPassword).HasColumnName(@"EncryptedPassword").IsRequired().ValueGeneratedNever();
|
||||||
modelBuilder.Entity<User>().Property(x => x.Groups).HasColumnName(@"Groups").IsRequired().ValueGeneratedNever();
|
modelBuilder.Entity<User>().Property(x => x.Groups).HasColumnName(@"Groups").IsRequired().ValueGeneratedNever();
|
||||||
|
modelBuilder.Entity<User>().Property(x => x.ForceLogout).HasColumnName(@"ForceLogout").IsRequired().ValueGeneratedNever();
|
||||||
modelBuilder.Entity<User>().HasKey(@"Id");
|
modelBuilder.Entity<User>().HasKey(@"Id");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
182
FoodsharingSiegen.Server/Migrations/20220411114633_forcelogout.Designer.cs
generated
Normal file
182
FoodsharingSiegen.Server/Migrations/20220411114633_forcelogout.Designer.cs
generated
Normal file
@@ -0,0 +1,182 @@
|
|||||||
|
// <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("20220411114633_forcelogout")]
|
||||||
|
partial class forcelogout
|
||||||
|
{
|
||||||
|
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<bool>("Alert")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnName("Alert");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Created")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Created");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Date")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Date");
|
||||||
|
|
||||||
|
b.Property<string>("Info")
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Info");
|
||||||
|
|
||||||
|
b.Property<bool>("NotNeeded")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnName("NotNeeded");
|
||||||
|
|
||||||
|
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>("EncryptedPassword")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("EncryptedPassword");
|
||||||
|
|
||||||
|
b.Property<bool>("ForceLogout")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnName("ForceLogout");
|
||||||
|
|
||||||
|
b.Property<string>("Groups")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("TEXT")
|
||||||
|
.HasColumnName("Groups");
|
||||||
|
|
||||||
|
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,26 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace FoodsharingSiegen.Server.Migrations
|
||||||
|
{
|
||||||
|
public partial class forcelogout : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<bool>(
|
||||||
|
name: "ForceLogout",
|
||||||
|
table: "Users",
|
||||||
|
type: "INTEGER",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: false);
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ForceLogout",
|
||||||
|
table: "Users");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -114,6 +114,10 @@ namespace FoodsharingSiegen.Server.Migrations
|
|||||||
.HasColumnType("TEXT")
|
.HasColumnType("TEXT")
|
||||||
.HasColumnName("EncryptedPassword");
|
.HasColumnName("EncryptedPassword");
|
||||||
|
|
||||||
|
b.Property<bool>("ForceLogout")
|
||||||
|
.HasColumnType("INTEGER")
|
||||||
|
.HasColumnName("ForceLogout");
|
||||||
|
|
||||||
b.Property<string>("Groups")
|
b.Property<string>("Groups")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasColumnType("TEXT")
|
.HasColumnType("TEXT")
|
||||||
|
|||||||
BIN
FoodsharingSiegen.Server/app.db-shm
Normal file
BIN
FoodsharingSiegen.Server/app.db-shm
Normal file
Binary file not shown.
BIN
FoodsharingSiegen.Server/app.db-wal
Normal file
BIN
FoodsharingSiegen.Server/app.db-wal
Normal file
Binary file not shown.
Reference in New Issue
Block a user