Rename projects to FileShare
This commit is contained in:
@@ -0,0 +1,94 @@
|
||||
using System;
|
||||
using FileShare_EFCore.Database;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FileShare_EFCore.Migrations.SQLite
|
||||
{
|
||||
[DbContext(typeof(SqliteAppDataContext))]
|
||||
[Migration("20260514000100_InitialCreate")]
|
||||
partial class InitialCreate
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "10.0.0");
|
||||
|
||||
modelBuilder.Entity("FileShare_EFCore.Models.UserEntity", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasComment("用户主键")
|
||||
.HasColumnName("id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasComment("创建时间")
|
||||
.HasColumnName("created-at");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.HasComment("用户邮箱")
|
||||
.HasColumnName("email")
|
||||
.HasMaxLength(200);
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasComment("用户名称")
|
||||
.HasColumnName("name")
|
||||
.HasMaxLength(100);
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasComment("更新时间")
|
||||
.HasColumnName("updated-at");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("pk-user");
|
||||
|
||||
b.ToTable("user", t =>
|
||||
{
|
||||
t.HasComment("用户实体,演示数据库 CRUD 操作");
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("FileShare_EFCore.Models.WeatherForecastEntity", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.HasComment("天气预报主键")
|
||||
.HasColumnName("id")
|
||||
.ValueGeneratedOnAdd();
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasComment("创建时间")
|
||||
.HasColumnName("created-at");
|
||||
|
||||
b.Property<DateOnly>("Date")
|
||||
.HasComment("预报日期")
|
||||
.HasColumnName("date");
|
||||
|
||||
b.Property<string>("Summary")
|
||||
.HasComment("天气摘要")
|
||||
.HasColumnName("summary")
|
||||
.HasMaxLength(200);
|
||||
|
||||
b.Property<int>("TemperatureC")
|
||||
.HasComment("摄氏温度")
|
||||
.HasColumnName("temperature-c");
|
||||
|
||||
b.Property<DateTime>("UpdatedAt")
|
||||
.HasComment("更新时间")
|
||||
.HasColumnName("updated-at");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("pk-weather-forecast");
|
||||
|
||||
b.ToTable("weather-forecast", t =>
|
||||
{
|
||||
t.HasComment("天气预报数据实体");
|
||||
});
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user