mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
67 lines
2.0 KiB
C#
67 lines
2.0 KiB
C#
// <auto-generated />
|
|
using Artemis.Storage;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage;
|
|
using System;
|
|
|
|
namespace Artemis.Storage.Migrations
|
|
{
|
|
[DbContext(typeof(StorageContext))]
|
|
partial class StorageContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "2.0.1-rtm-125");
|
|
|
|
modelBuilder.Entity("Artemis.Storage.Entities.Layer", b =>
|
|
{
|
|
b.Property<int>("ProfileId");
|
|
|
|
b.Property<string>("Name");
|
|
|
|
b.HasKey("ProfileId", "Name");
|
|
|
|
b.ToTable("Layer");
|
|
});
|
|
|
|
modelBuilder.Entity("Artemis.Storage.Entities.Profile", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("Name");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Profiles");
|
|
});
|
|
|
|
modelBuilder.Entity("Artemis.Storage.Entities.Setting", b =>
|
|
{
|
|
b.Property<string>("Name")
|
|
.ValueGeneratedOnAdd();
|
|
|
|
b.Property<string>("Value");
|
|
|
|
b.HasKey("Name");
|
|
|
|
b.ToTable("Settings");
|
|
});
|
|
|
|
modelBuilder.Entity("Artemis.Storage.Entities.Layer", b =>
|
|
{
|
|
b.HasOne("Artemis.Storage.Entities.Profile", "Profile")
|
|
.WithMany("Layers")
|
|
.HasForeignKey("ProfileId")
|
|
.OnDelete(DeleteBehavior.Cascade);
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|