192 lines
6.7 KiB
C#
192 lines
6.7 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Blahblah.FlowerStory.Server.Data;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace Blahblah.FlowerStory.Server.Migrations
|
|
{
|
|
[DbContext(typeof(FlowerDatabase))]
|
|
[Migration("20230523031232_AddTokens")]
|
|
partial class AddTokens
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "7.0.5");
|
|
|
|
modelBuilder.Entity("Blahblah.FlowerStory.Server.Data.Model.FlowerItem", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("fid");
|
|
|
|
b.Property<int>("CategoryId")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("categoryid");
|
|
|
|
b.Property<decimal?>("Cost")
|
|
.HasColumnType("real")
|
|
.HasColumnName("cost");
|
|
|
|
b.Property<long>("DateBuyUnixTime")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("datebuy")
|
|
.HasAnnotation("Relational:JsonPropertyName", "dateBuy");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("name");
|
|
|
|
b.Property<byte[]>("Photo")
|
|
.HasColumnType("BLOB")
|
|
.HasColumnName("photo");
|
|
|
|
b.Property<string>("Purchase")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("purchase");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("flowers");
|
|
});
|
|
|
|
modelBuilder.Entity("Blahblah.FlowerStory.Server.Data.Model.RecordItem", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("rid");
|
|
|
|
b.Property<int?>("ByUserId")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("byuid");
|
|
|
|
b.Property<string>("ByUserName")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("byname");
|
|
|
|
b.Property<long>("DateUnixTime")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("date")
|
|
.HasAnnotation("Relational:JsonPropertyName", "date");
|
|
|
|
b.Property<int>("EventId")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("eid");
|
|
|
|
b.Property<byte[]>("Photo")
|
|
.HasColumnType("BLOB")
|
|
.HasColumnName("photo");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("records");
|
|
});
|
|
|
|
modelBuilder.Entity("Blahblah.FlowerStory.Server.Data.Model.TokenItem", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("tid");
|
|
|
|
b.Property<long>("ActiveDateUnixTime")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("activedate");
|
|
|
|
b.Property<string>("ClientAgent")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("clientagent");
|
|
|
|
b.Property<string>("ClientApp")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("clientapp");
|
|
|
|
b.Property<string>("DeviceId")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("deviceid");
|
|
|
|
b.Property<long>("ExpireDateUnixTime")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("expiredate");
|
|
|
|
b.Property<int>("ExpireSeconds")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("expiresecs");
|
|
|
|
b.Property<long>("LogonDateUnixTime")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("logondate");
|
|
|
|
b.Property<int>("UserId")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("uid");
|
|
|
|
b.Property<string>("VerifyCode")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("verifycode");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("tokens");
|
|
});
|
|
|
|
modelBuilder.Entity("Blahblah.FlowerStory.Server.Data.Model.UserItem", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("uid");
|
|
|
|
b.Property<long?>("ActiveDateUnixTime")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("activedate");
|
|
|
|
b.Property<string>("Email")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("email");
|
|
|
|
b.Property<int>("Level")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("level");
|
|
|
|
b.Property<string>("Mobile")
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("mobile");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("name");
|
|
|
|
b.Property<string>("Password")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("password");
|
|
|
|
b.Property<long>("RegisterDateUnixTime")
|
|
.HasColumnType("INTEGER")
|
|
.HasColumnName("regdate")
|
|
.HasAnnotation("Relational:JsonPropertyName", "registerDate");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT")
|
|
.HasColumnName("id");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("users");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|