77 lines
2.6 KiB
C#
77 lines
2.6 KiB
C#
|
|
// <auto-generated />
|
||
|
|
using System;
|
||
|
|
using Microsoft.EntityFrameworkCore;
|
||
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
||
|
|
using TeamUp.Modules.Integrations.Persistence;
|
||
|
|
|
||
|
|
#nullable disable
|
||
|
|
|
||
|
|
namespace TeamUp.Modules.Integrations.Persistence.Migrations
|
||
|
|
{
|
||
|
|
[DbContext(typeof(IntegrationsDbContext))]
|
||
|
|
partial class IntegrationsDbContextModelSnapshot : ModelSnapshot
|
||
|
|
{
|
||
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
||
|
|
{
|
||
|
|
#pragma warning disable 612, 618
|
||
|
|
modelBuilder
|
||
|
|
.HasDefaultSchema("integrations")
|
||
|
|
.HasAnnotation("ProductVersion", "10.0.8")
|
||
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||
|
|
|
||
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
||
|
|
|
||
|
|
modelBuilder.Entity("TeamUp.Modules.Integrations.Domain.ApiConfig", b =>
|
||
|
|
{
|
||
|
|
b.Property<Guid>("Id")
|
||
|
|
.ValueGeneratedOnAdd()
|
||
|
|
.HasColumnType("uuid");
|
||
|
|
|
||
|
|
b.Property<DateTimeOffset>("CreatedAtUtc")
|
||
|
|
.HasColumnType("timestamp with time zone");
|
||
|
|
|
||
|
|
b.Property<Guid>("CreatedByMemberId")
|
||
|
|
.HasColumnType("uuid");
|
||
|
|
|
||
|
|
b.Property<string>("EncryptedKey")
|
||
|
|
.IsRequired()
|
||
|
|
.HasColumnType("text");
|
||
|
|
|
||
|
|
b.Property<string>("Endpoint")
|
||
|
|
.HasMaxLength(500)
|
||
|
|
.HasColumnType("character varying(500)");
|
||
|
|
|
||
|
|
b.Property<string>("Model")
|
||
|
|
.IsRequired()
|
||
|
|
.HasMaxLength(120)
|
||
|
|
.HasColumnType("character varying(120)");
|
||
|
|
|
||
|
|
b.Property<string>("Name")
|
||
|
|
.IsRequired()
|
||
|
|
.HasMaxLength(120)
|
||
|
|
.HasColumnType("character varying(120)");
|
||
|
|
|
||
|
|
b.Property<Guid>("OrganizationId")
|
||
|
|
.HasColumnType("uuid");
|
||
|
|
|
||
|
|
b.Property<string>("Provider")
|
||
|
|
.IsRequired()
|
||
|
|
.HasMaxLength(60)
|
||
|
|
.HasColumnType("character varying(60)");
|
||
|
|
|
||
|
|
b.HasKey("Id");
|
||
|
|
|
||
|
|
b.HasIndex("OrganizationId");
|
||
|
|
|
||
|
|
b.HasIndex("OrganizationId", "Name")
|
||
|
|
.IsUnique();
|
||
|
|
|
||
|
|
b.ToTable("api_configs", "integrations");
|
||
|
|
});
|
||
|
|
#pragma warning restore 612, 618
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|