Switch to PostgreSQL and update database configuration

This commit is contained in:
2025-01-21 19:41:18 -06:00
parent 4f76a08ca3
commit 364c7d83e2
7 changed files with 13 additions and 173 deletions
@@ -1,54 +0,0 @@
// <auto-generated />
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace barkmanapi.Migrations
{
[DbContext(typeof(BarkContext))]
partial class BarkContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "9.0.0");
modelBuilder.Entity("InventoryItems", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Brand")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("TEXT");
b.Property<string>("Notes")
.HasColumnType("TEXT");
b.Property<float?>("RentalPrice")
.HasColumnType("REAL");
b.Property<float?>("ReplacementCost")
.HasColumnType("REAL");
b.Property<string>("SerialNumber")
.HasColumnType("TEXT");
b.Property<string>("Status")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("Inventory");
});
#pragma warning restore 612, 618
}
}
}