65 lines
1.9 KiB
C#
65 lines
1.9 KiB
C#
|
// <auto-generated />
|
|||
|
using System;
|
|||
|
using Microsoft.EntityFrameworkCore;
|
|||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace backend.Migrations
|
|||
|
{
|
|||
|
[DbContext(typeof(DispenserContext))]
|
|||
|
[Migration("20231207234050_AddSessionTokenToUser")]
|
|||
|
partial class AddSessionTokenToUser
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|||
|
{
|
|||
|
#pragma warning disable 612, 618
|
|||
|
modelBuilder.HasAnnotation("ProductVersion", "8.0.0");
|
|||
|
|
|||
|
modelBuilder.Entity("backend.Models.DispenserLog", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("INTEGER");
|
|||
|
|
|||
|
b.Property<DateTime>("Timestamp")
|
|||
|
.HasColumnType("TEXT");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("DispenserLogs");
|
|||
|
});
|
|||
|
|
|||
|
modelBuilder.Entity("backend.Models.User", b =>
|
|||
|
{
|
|||
|
b.Property<int>("Id")
|
|||
|
.ValueGeneratedOnAdd()
|
|||
|
.HasColumnType("INTEGER");
|
|||
|
|
|||
|
b.Property<string>("Password")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("TEXT");
|
|||
|
|
|||
|
b.Property<string>("SessionToken")
|
|||
|
.HasColumnType("TEXT");
|
|||
|
|
|||
|
b.Property<string>("TouchCode")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("TEXT");
|
|||
|
|
|||
|
b.Property<string>("Username")
|
|||
|
.IsRequired()
|
|||
|
.HasColumnType("TEXT");
|
|||
|
|
|||
|
b.HasKey("Id");
|
|||
|
|
|||
|
b.ToTable("Users");
|
|||
|
});
|
|||
|
#pragma warning restore 612, 618
|
|||
|
}
|
|||
|
}
|
|||
|
}
|