101 lines
3.9 KiB
C#
101 lines
3.9 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using WhiteLagoon.Infrastructure.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace WhiteLagoon.Infrastructure.Migrations
|
|
{
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
[Migration("20230804001325_seedVillaToDb")]
|
|
partial class seedVillaToDb
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "8.0.0-preview.6.23329.4")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("WhiteLagoon.Domain.Entities.Villa", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
b.Property<DateTime?>("Created_Date")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.Property<string>("Description")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("ImageUrl")
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
b.Property<int>("Occupancy")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<double>("Price")
|
|
.HasColumnType("float");
|
|
|
|
b.Property<int>("Sqft")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime?>("Updated_Date")
|
|
.HasColumnType("datetime2");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Villas");
|
|
|
|
b.HasData(
|
|
new
|
|
{
|
|
Id = 1,
|
|
Description = "Fusce 11 tincidunt maximus leo, sed scelerisque massa auctor sit amet. Donec ex mauris, hendrerit quis nibh ac, efficitur fringilla enim.",
|
|
ImageUrl = "https://placehold.co/600x400",
|
|
Name = "Royal Villa",
|
|
Occupancy = 4,
|
|
Price = 200.0,
|
|
Sqft = 550
|
|
},
|
|
new
|
|
{
|
|
Id = 2,
|
|
Description = "Fusce 11 tincidunt maximus leo, sed scelerisque massa auctor sit amet. Donec ex mauris, hendrerit quis nibh ac, efficitur fringilla enim.",
|
|
ImageUrl = "https://placehold.co/600x401",
|
|
Name = "Premium Pool Villa",
|
|
Occupancy = 4,
|
|
Price = 300.0,
|
|
Sqft = 550
|
|
},
|
|
new
|
|
{
|
|
Id = 3,
|
|
Description = "Fusce 11 tincidunt maximus leo, sed scelerisque massa auctor sit amet. Donec ex mauris, hendrerit quis nibh ac, efficitur fringilla enim.",
|
|
ImageUrl = "https://placehold.co/600x402",
|
|
Name = "Luxury Pool Villa",
|
|
Occupancy = 4,
|
|
Price = 400.0,
|
|
Sqft = 750
|
|
});
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|