72 lines
2.4 KiB
C#
72 lines
2.4 KiB
C#
// <auto-generated />
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using Telegram.Bot.SpaceApi.Backend.Database;
|
|
|
|
#nullable disable
|
|
|
|
namespace Telegram.Bot.SpaceApi.Migrations
|
|
{
|
|
[DbContext(typeof(DatabaseContext))]
|
|
[Migration("20230408003004_BEF4B230-8E1D-40FF-AB34-130BB0E7E87B")]
|
|
partial class BEF4B2308E1D40FFAB34130BB0E7E87B
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "7.0.4");
|
|
|
|
modelBuilder.Entity("Telegram.Bot.SpaceApi.Backend.Database.Tables.Bot", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ApiOverrideAddress")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("ApiOverrideAddress");
|
|
|
|
b.Property<string>("ApiUrl")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("ApiUrl");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("Name");
|
|
|
|
b.Property<string>("Token")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("Token");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Bots", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Telegram.Bot.SpaceApi.Backend.Database.Tables.Config", b =>
|
|
{
|
|
b.Property<string>("Key")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("Key");
|
|
|
|
b.Property<string>("Value")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("Value");
|
|
|
|
b.HasKey("Key");
|
|
|
|
b.ToTable("Config", (string)null);
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|