//
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("20230524062207_AddOwner")]
partial class AddOwner
{
///
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("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasColumnName("fid");
b.Property("CategoryId")
.HasColumnType("INTEGER")
.HasColumnName("categoryid");
b.Property("Cost")
.HasColumnType("real")
.HasColumnName("cost");
b.Property("DateBuyUnixTime")
.HasColumnType("INTEGER")
.HasColumnName("datebuy")
.HasAnnotation("Relational:JsonPropertyName", "dateBuy");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("name");
b.Property("OwnerId")
.HasColumnType("INTEGER")
.HasColumnName("uid");
b.Property("Photo")
.HasColumnType("BLOB")
.HasColumnName("photo");
b.Property("Purchase")
.HasColumnType("TEXT")
.HasColumnName("purchase");
b.HasKey("Id");
b.ToTable("flowers");
});
modelBuilder.Entity("Blahblah.FlowerStory.Server.Data.Model.RecordItem", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasColumnName("rid");
b.Property("ByUserId")
.HasColumnType("INTEGER")
.HasColumnName("byuid");
b.Property("ByUserName")
.HasColumnType("TEXT")
.HasColumnName("byname");
b.Property("DateUnixTime")
.HasColumnType("INTEGER")
.HasColumnName("date")
.HasAnnotation("Relational:JsonPropertyName", "date");
b.Property("EventId")
.HasColumnType("INTEGER")
.HasColumnName("eid");
b.Property("OwnerId")
.HasColumnType("INTEGER")
.HasColumnName("uid");
b.Property("Photo")
.HasColumnType("BLOB")
.HasColumnName("photo");
b.HasKey("Id");
b.ToTable("records");
});
modelBuilder.Entity("Blahblah.FlowerStory.Server.Data.Model.TokenItem", b =>
{
b.Property("Id")
.HasColumnType("TEXT")
.HasColumnName("tid");
b.Property("ActiveDateUnixTime")
.HasColumnType("INTEGER")
.HasColumnName("activedate")
.HasAnnotation("Relational:JsonPropertyName", "activeDate");
b.Property("ClientAgent")
.HasColumnType("TEXT")
.HasColumnName("clientagent");
b.Property("ClientApp")
.HasColumnType("TEXT")
.HasColumnName("clientapp");
b.Property("DeviceId")
.HasColumnType("TEXT")
.HasColumnName("deviceid");
b.Property("ExpireDateUnixTime")
.HasColumnType("INTEGER")
.HasColumnName("expiredate")
.HasAnnotation("Relational:JsonPropertyName", "expireDate");
b.Property("ExpireSeconds")
.HasColumnType("INTEGER")
.HasColumnName("expiresecs");
b.Property("LogonDateUnixTime")
.HasColumnType("INTEGER")
.HasColumnName("logondate")
.HasAnnotation("Relational:JsonPropertyName", "logonDate");
b.Property("UserId")
.HasColumnType("INTEGER")
.HasColumnName("uid");
b.Property("VerifyCode")
.HasColumnType("TEXT")
.HasColumnName("verifycode");
b.HasKey("Id");
b.ToTable("tokens");
});
modelBuilder.Entity("Blahblah.FlowerStory.Server.Data.Model.UserItem", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER")
.HasColumnName("uid");
b.Property("ActiveDateUnixTime")
.HasColumnType("INTEGER")
.HasColumnName("activedate");
b.Property("Email")
.HasColumnType("TEXT")
.HasColumnName("email");
b.Property("Level")
.HasColumnType("INTEGER")
.HasColumnName("level");
b.Property("Mobile")
.HasColumnType("TEXT")
.HasColumnName("mobile");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("name");
b.Property("Password")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("password");
b.Property("RegisterDateUnixTime")
.HasColumnType("INTEGER")
.HasColumnName("regdate")
.HasAnnotation("Relational:JsonPropertyName", "registerDate");
b.Property("UserId")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("id");
b.HasKey("Id");
b.ToTable("users");
});
#pragma warning restore 612, 618
}
}
}