101 lines
3.1 KiB
C#
101 lines
3.1 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using StockHistory.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace StockHistory.Migrations
|
|
{
|
|
[DbContext(typeof(AppDbContext))]
|
|
[Migration("20260517151320_NewTableStockEquity")]
|
|
partial class NewTableStockEquity
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "9.0.6");
|
|
|
|
modelBuilder.Entity("StockHistory.Models.StockEquity", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("Bought")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<decimal>("BoughtPrice")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("Quantity")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTime>("Sold")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<decimal>("SoldPrice")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("SoldQuant")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("StockCode")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("Bought");
|
|
|
|
b.HasIndex("Sold");
|
|
|
|
b.ToTable("Stocks");
|
|
});
|
|
|
|
modelBuilder.Entity("StockHistory.Models.TransactionNote", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<decimal>("AmountToPay")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<decimal>("Commission")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("StockCode")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<decimal>("StockPrice")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("StockQuantity")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<decimal>("TotalAmount")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTime>("TransactionDate")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("TransactionType")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("StockCode", "TransactionDate")
|
|
.IsUnique();
|
|
|
|
b.ToTable("TransactionNotes");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|