slik-dispenser/backend/Migrations/DispenserContextModelSnapshot.cs

68 lines
2.0 KiB
C#
Raw Permalink Normal View History

2023-12-05 22:43:02 +00:00
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace backend.Migrations
{
[DbContext(typeof(DispenserContext))]
partial class DispenserContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(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");
});
2023-12-06 13:11:11 +00:00
modelBuilder.Entity("backend.Models.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
2023-12-19 12:37:13 +00:00
b.Property<int>("Dispenses")
.HasColumnType("INTEGER");
b.Property<bool>("IsParent")
.HasColumnType("INTEGER");
2023-12-06 13:11:11 +00:00
b.Property<string>("Password")
.IsRequired()
.HasColumnType("TEXT");
2023-12-08 00:05:55 +00:00
b.Property<string>("SessionToken")
.HasColumnType("TEXT");
2023-12-06 13:11:11 +00:00
b.Property<string>("TouchCode")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Username")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Users");
});
2023-12-05 22:43:02 +00:00
#pragma warning restore 612, 618
}
}
}