....
This commit is contained in:
21
Hushian.Domain/Entites/AIA.cs
Normal file
21
Hushian.Domain/Entites/AIA.cs
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
using Hushian.Domain.Abstracts;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Hushian.Domain.Entites
|
||||||
|
{
|
||||||
|
class AIA : BaseEntity
|
||||||
|
{
|
||||||
|
public int ID { get; set; }
|
||||||
|
public DateTime Cdatetime { get; set; }
|
||||||
|
|
||||||
|
public int CompanyID { get; set; }
|
||||||
|
public int UserID { get; set; }
|
||||||
|
public string Request { get; set; }
|
||||||
|
public string Response { get; set; }
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@@ -37,6 +37,8 @@ namespace Hushian.Domain.Entites
|
|||||||
= new List<Conversation>();
|
= new List<Conversation>();
|
||||||
public ICollection<CompanyContentInfo> CompanyContentInfos { get; set; }
|
public ICollection<CompanyContentInfo> CompanyContentInfos { get; set; }
|
||||||
= new List<CompanyContentInfo>();
|
= new List<CompanyContentInfo>();
|
||||||
|
public ICollection<Prompt> prompts { get; set; }
|
||||||
|
= new List<Prompt>();
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
21
Hushian.Domain/Entites/Prompt.cs
Normal file
21
Hushian.Domain/Entites/Prompt.cs
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
using Hushian.Domain.Abstracts;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.ComponentModel.DataAnnotations.Schema;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Hushian.Domain.Entites
|
||||||
|
{
|
||||||
|
public class Prompt : BaseEntity
|
||||||
|
{
|
||||||
|
public int ID { get; set; }
|
||||||
|
public DateTime Cdatetime { get; set; }
|
||||||
|
public int CompanyID { get; set; }
|
||||||
|
public string Test { get; set; }
|
||||||
|
|
||||||
|
[ForeignKey("CompanyID")]
|
||||||
|
public Company Company { get; set; }
|
||||||
|
}
|
||||||
|
}
|
@@ -21,11 +21,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hushian.WebApi", "Presentat
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HushianWebApp", "Presentation\HushianWebApp\HushianWebApp.csproj", "{80D865DC-1CCD-9C25-5DAF-153E7B33408E}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HushianWebApp", "Presentation\HushianWebApp\HushianWebApp.csproj", "{80D865DC-1CCD-9C25-5DAF-153E7B33408E}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8EC462FD-D22E-90A8-E5CE-7E832BA40C5D}"
|
|
||||||
ProjectSection(SolutionItems) = preProject
|
|
||||||
TODO.txt = TODO.txt
|
|
||||||
EndProjectSection
|
|
||||||
EndProject
|
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
@@ -22,6 +22,7 @@ namespace Hushian.Persistence
|
|||||||
public DbSet<ExperGroup> EG { get; set; }
|
public DbSet<ExperGroup> EG { get; set; }
|
||||||
public DbSet<User> Users { get; set; }
|
public DbSet<User> Users { get; set; }
|
||||||
public DbSet<VerificationCode > verificationCodes { get; set; }
|
public DbSet<VerificationCode > verificationCodes { get; set; }
|
||||||
|
public DbSet<Prompt> prompts { get; set; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||||
|
490
Infrastructure/Persistence/Migrations/20250815213829_tbpromt.Designer.cs
generated
Normal file
490
Infrastructure/Persistence/Migrations/20250815213829_tbpromt.Designer.cs
generated
Normal file
@@ -0,0 +1,490 @@
|
|||||||
|
// <auto-generated />
|
||||||
|
using System;
|
||||||
|
using Hushian.Persistence;
|
||||||
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Hushian.Persistence.Migrations
|
||||||
|
{
|
||||||
|
[DbContext(typeof(HushianDbContext))]
|
||||||
|
[Migration("20250815213829_tbpromt")]
|
||||||
|
partial class tbpromt
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
|
{
|
||||||
|
#pragma warning disable 612, 618
|
||||||
|
modelBuilder
|
||||||
|
.HasAnnotation("ProductVersion", "9.0.7")
|
||||||
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||||
|
|
||||||
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Company", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("ID")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
||||||
|
|
||||||
|
b.Property<bool>("Available")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Cdatetime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("Email")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("FullName")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("FullNameManager")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("Mobile")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("Password")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<bool>("Verified")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<string>("WebSite")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<bool>("allowBot")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<byte[]>("logo")
|
||||||
|
.HasColumnType("varbinary(max)");
|
||||||
|
|
||||||
|
b.HasKey("ID");
|
||||||
|
|
||||||
|
b.ToTable("Companies");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.CompanyContentInfo", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("ID")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
||||||
|
|
||||||
|
b.Property<DateTime>("Cdatetime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<int>("CompanyID")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<string>("Content")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.HasKey("ID");
|
||||||
|
|
||||||
|
b.HasIndex("CompanyID");
|
||||||
|
|
||||||
|
b.ToTable("CompanyContentInfo");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Conversation", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("ID")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
||||||
|
|
||||||
|
b.Property<DateTime>("Cdatetime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<int>("CompanyID")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("FinishedDateTime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<int?>("GroupID")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<int>("Status")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<int>("UserID")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.HasKey("ID");
|
||||||
|
|
||||||
|
b.HasIndex("CompanyID");
|
||||||
|
|
||||||
|
b.HasIndex("GroupID");
|
||||||
|
|
||||||
|
b.HasIndex("UserID");
|
||||||
|
|
||||||
|
b.ToTable("Conversations");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.ConversationResponse", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("ID")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
||||||
|
|
||||||
|
b.Property<DateTime>("Cdatetime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<int>("ConversationID")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<int?>("ExperID")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<byte[]>("FileContent")
|
||||||
|
.HasColumnType("varbinary(max)");
|
||||||
|
|
||||||
|
b.Property<string>("FileName")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("FileType")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<bool>("IsRead")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<DateTime?>("ReadDateTime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("Text")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<int>("Type")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.HasKey("ID");
|
||||||
|
|
||||||
|
b.HasIndex("ConversationID");
|
||||||
|
|
||||||
|
b.HasIndex("ExperID");
|
||||||
|
|
||||||
|
b.ToTable("ConversationItems");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Exper", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("ID")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
||||||
|
|
||||||
|
b.Property<bool>("Available")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Cdatetime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<int>("CompanyID")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<string>("FullName")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("Password")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("UserName")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.HasKey("ID");
|
||||||
|
|
||||||
|
b.HasIndex("CompanyID");
|
||||||
|
|
||||||
|
b.ToTable("Expers");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.ExperGroup", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("ExperID")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<int>("GroupID")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Cdatetime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.HasKey("ExperID", "GroupID");
|
||||||
|
|
||||||
|
b.HasIndex("GroupID");
|
||||||
|
|
||||||
|
b.ToTable("EG");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Group", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("ID")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
||||||
|
|
||||||
|
b.Property<bool>("Available")
|
||||||
|
.HasColumnType("bit");
|
||||||
|
|
||||||
|
b.Property<DateTime>("Cdatetime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<int>("CompanyID")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<string>("Info")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("Name")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<byte[]>("img")
|
||||||
|
.HasColumnType("varbinary(max)");
|
||||||
|
|
||||||
|
b.HasKey("ID");
|
||||||
|
|
||||||
|
b.HasIndex("CompanyID");
|
||||||
|
|
||||||
|
b.ToTable("Groups");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Prompt", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("ID")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
||||||
|
|
||||||
|
b.Property<DateTime>("Cdatetime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<int>("CompanyID")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<string>("Test")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.HasKey("ID");
|
||||||
|
|
||||||
|
b.HasIndex("CompanyID");
|
||||||
|
|
||||||
|
b.ToTable("prompts");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.User", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("ID")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
||||||
|
|
||||||
|
b.Property<DateTime>("Cdatetime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("FullName")
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("Mobile")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.HasKey("ID");
|
||||||
|
|
||||||
|
b.ToTable("Users");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Identity.Models.VerificationCode", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("ID")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
||||||
|
|
||||||
|
b.Property<DateTime>("Cdatetime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<string>("Code")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<string>("Mobile")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.Property<int>("Type")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.HasKey("ID");
|
||||||
|
|
||||||
|
b.ToTable("verificationCodes");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.CompanyContentInfo", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hushian.Domain.Entites.Company", "company")
|
||||||
|
.WithMany("CompanyContentInfos")
|
||||||
|
.HasForeignKey("CompanyID")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("company");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Conversation", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hushian.Domain.Entites.Company", "Company")
|
||||||
|
.WithMany("Conversations")
|
||||||
|
.HasForeignKey("CompanyID")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("Hushian.Domain.Entites.Group", "Group")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("GroupID");
|
||||||
|
|
||||||
|
b.HasOne("Hushian.Domain.Entites.User", "User")
|
||||||
|
.WithMany("Conversations")
|
||||||
|
.HasForeignKey("UserID")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Company");
|
||||||
|
|
||||||
|
b.Navigation("Group");
|
||||||
|
|
||||||
|
b.Navigation("User");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.ConversationResponse", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hushian.Domain.Entites.Conversation", "conversation")
|
||||||
|
.WithMany("ConversationResponses")
|
||||||
|
.HasForeignKey("ConversationID")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("Hushian.Domain.Entites.Exper", "Exper")
|
||||||
|
.WithMany()
|
||||||
|
.HasForeignKey("ExperID");
|
||||||
|
|
||||||
|
b.Navigation("Exper");
|
||||||
|
|
||||||
|
b.Navigation("conversation");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Exper", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hushian.Domain.Entites.Company", "Company")
|
||||||
|
.WithMany("Expers")
|
||||||
|
.HasForeignKey("CompanyID")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Company");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.ExperGroup", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hushian.Domain.Entites.Exper", "Exper")
|
||||||
|
.WithMany("EG")
|
||||||
|
.HasForeignKey("ExperID")
|
||||||
|
.OnDelete(DeleteBehavior.ClientCascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.HasOne("Hushian.Domain.Entites.Group", "Group")
|
||||||
|
.WithMany("EG")
|
||||||
|
.HasForeignKey("GroupID")
|
||||||
|
.OnDelete(DeleteBehavior.ClientCascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Exper");
|
||||||
|
|
||||||
|
b.Navigation("Group");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Group", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hushian.Domain.Entites.Company", "Company")
|
||||||
|
.WithMany("Groups")
|
||||||
|
.HasForeignKey("CompanyID")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Company");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Prompt", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hushian.Domain.Entites.Company", "Company")
|
||||||
|
.WithMany("prompts")
|
||||||
|
.HasForeignKey("CompanyID")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Company");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Company", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("CompanyContentInfos");
|
||||||
|
|
||||||
|
b.Navigation("Conversations");
|
||||||
|
|
||||||
|
b.Navigation("Expers");
|
||||||
|
|
||||||
|
b.Navigation("Groups");
|
||||||
|
|
||||||
|
b.Navigation("prompts");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Conversation", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("ConversationResponses");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Exper", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("EG");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Group", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("EG");
|
||||||
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.User", b =>
|
||||||
|
{
|
||||||
|
b.Navigation("Conversations");
|
||||||
|
});
|
||||||
|
#pragma warning restore 612, 618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -0,0 +1,48 @@
|
|||||||
|
using System;
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Hushian.Persistence.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class tbpromt : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.CreateTable(
|
||||||
|
name: "prompts",
|
||||||
|
columns: table => new
|
||||||
|
{
|
||||||
|
ID = table.Column<int>(type: "int", nullable: false)
|
||||||
|
.Annotation("SqlServer:Identity", "1, 1"),
|
||||||
|
Cdatetime = table.Column<DateTime>(type: "datetime2", nullable: false),
|
||||||
|
CompanyID = table.Column<int>(type: "int", nullable: false),
|
||||||
|
Test = table.Column<string>(type: "nvarchar(max)", nullable: false)
|
||||||
|
},
|
||||||
|
constraints: table =>
|
||||||
|
{
|
||||||
|
table.PrimaryKey("PK_prompts", x => x.ID);
|
||||||
|
table.ForeignKey(
|
||||||
|
name: "FK_prompts_Companies_CompanyID",
|
||||||
|
column: x => x.CompanyID,
|
||||||
|
principalTable: "Companies",
|
||||||
|
principalColumn: "ID",
|
||||||
|
onDelete: ReferentialAction.Cascade);
|
||||||
|
});
|
||||||
|
|
||||||
|
migrationBuilder.CreateIndex(
|
||||||
|
name: "IX_prompts_CompanyID",
|
||||||
|
table: "prompts",
|
||||||
|
column: "CompanyID");
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropTable(
|
||||||
|
name: "prompts");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -269,6 +269,31 @@ namespace Hushian.Persistence.Migrations
|
|||||||
b.ToTable("Groups");
|
b.ToTable("Groups");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Prompt", b =>
|
||||||
|
{
|
||||||
|
b.Property<int>("ID")
|
||||||
|
.ValueGeneratedOnAdd()
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("ID"));
|
||||||
|
|
||||||
|
b.Property<DateTime>("Cdatetime")
|
||||||
|
.HasColumnType("datetime2");
|
||||||
|
|
||||||
|
b.Property<int>("CompanyID")
|
||||||
|
.HasColumnType("int");
|
||||||
|
|
||||||
|
b.Property<string>("Test")
|
||||||
|
.IsRequired()
|
||||||
|
.HasColumnType("nvarchar(max)");
|
||||||
|
|
||||||
|
b.HasKey("ID");
|
||||||
|
|
||||||
|
b.HasIndex("CompanyID");
|
||||||
|
|
||||||
|
b.ToTable("prompts");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Hushian.Domain.Entites.User", b =>
|
modelBuilder.Entity("Hushian.Domain.Entites.User", b =>
|
||||||
{
|
{
|
||||||
b.Property<int>("ID")
|
b.Property<int>("ID")
|
||||||
@@ -413,6 +438,17 @@ namespace Hushian.Persistence.Migrations
|
|||||||
b.Navigation("Company");
|
b.Navigation("Company");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
modelBuilder.Entity("Hushian.Domain.Entites.Prompt", b =>
|
||||||
|
{
|
||||||
|
b.HasOne("Hushian.Domain.Entites.Company", "Company")
|
||||||
|
.WithMany("prompts")
|
||||||
|
.HasForeignKey("CompanyID")
|
||||||
|
.OnDelete(DeleteBehavior.Cascade)
|
||||||
|
.IsRequired();
|
||||||
|
|
||||||
|
b.Navigation("Company");
|
||||||
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Hushian.Domain.Entites.Company", b =>
|
modelBuilder.Entity("Hushian.Domain.Entites.Company", b =>
|
||||||
{
|
{
|
||||||
b.Navigation("CompanyContentInfos");
|
b.Navigation("CompanyContentInfos");
|
||||||
@@ -422,6 +458,8 @@ namespace Hushian.Persistence.Migrations
|
|||||||
b.Navigation("Expers");
|
b.Navigation("Expers");
|
||||||
|
|
||||||
b.Navigation("Groups");
|
b.Navigation("Groups");
|
||||||
|
|
||||||
|
b.Navigation("prompts");
|
||||||
});
|
});
|
||||||
|
|
||||||
modelBuilder.Entity("Hushian.Domain.Entites.Conversation", b =>
|
modelBuilder.Entity("Hushian.Domain.Entites.Conversation", b =>
|
||||||
|
Reference in New Issue
Block a user