Migrations
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
1,test album,test artist,"",test genre,,2025-04-26,test
|
||||
2,Digital Dreams,Cyber Syntax,"",Techno,,2024-03-15,Neon Pulse
|
||||
3,Voltage,Circuit Breaker,"",Acid Techno,,2024-01-22,Acid Rain
|
||||
4,,Data Ghost,"",Hard Techno,,2024-05-08,Binary Storm
|
||||
5,Mindscape,Synth Walker,"",Minimal Techno,,2023-11-30,Electric Mind
|
||||
6,Steel Symphony,Metal Machine,"",Industrial Techno,,2024-02-14,Chrome Hearts
|
||||
7,,Future Shock,"",Progressive Techno,,2024-06-03,Quantum Leap
|
||||
8,Neon Nights,Grid Runner,"",Synthwave Techno,,2024-04-18,Laser Grid
|
||||
9,Cosmic Terror,Void Seeker,"",Dark Techno,,2023-12-05,Dark Matter
|
||||
10,,Algorithm X,"",Minimal Techno,,2024-07-12,Machine Code
|
||||
11,Nostalgia Drive,Retro Bot,"",Tech House,,2024-01-09,Cyber Funk
|
||||
12,Urban Decay,Shadow Tech,"",Underground Techno,,2024-03-27,Neon Underground
|
||||
13,,Pulse Driver,"",Hard Techno,,2024-05-21,Digital Fever
|
||||
14,Electric Sheep,Synthetic Soul,"",Ambient Techno,,2023-10-14,Android Dreams
|
||||
15,System Error,Code Breaker,"",Glitch Techno,,2024-02-28,Matrix Glitch
|
||||
16,,Power Surge,"",Acid Techno,,2024-08-07,Voltage Spike
|
||||
17,Invisible Beats,Phantom DJ,"",Minimal Techno,,2024-04-02,Ghost Protocol
|
||||
18,Weather Control,Digital Hurricane,"",Hard Techno,,2024-06-19,Cyber Storm
|
||||
19,,Urban Pulse,"",Progressive Techno,,2023-09-23,Neon City
|
||||
20,Network Traffic,Information Flow,"",Minimal Techno,,2024-01-16,Data Stream
|
||||
21,Blackout,Dark Current,"",Dark Techno,,2024-07-30,Electric Shadows
|
||||
22,,Speed Daemon,"",Hard Techno,,2024-03-11,Terminal Velocity
|
||||
23,Artificial Emotion,Robot Heart,"",Tech House,,2024-05-25,Synthetic Love
|
||||
24,Photon Dance,Light Bender,"",Synthwave Techno,,2023-12-18,Laser Show
|
||||
25,,Metal Mind,"",Industrial Techno,,2024-02-06,Chrome City
|
||||
26,Data Roads,Info Rider,"",Progressive Techno,,2024-08-14,Digital Highway
|
||||
27,Lost in Light,Grid Walker,"",Minimal Techno,,2024-04-29,Neon Maze
|
||||
28,,Rebel Code,"",Acid Techno,,2024-06-12,Cyber Punk
|
||||
29,Consciousness Upload,AI Prophet,"",Ambient Techno,,2023-11-08,Machine Soul
|
||||
30,Weather Wars,Thunder Tech,"",Hard Techno,,2024-07-03,Electric Storm
|
||||
31,REM Cycle,Sleep Mode,"",Minimal Techno,,2024-01-31,Digital Dreams
|
||||
32,Test Album,Test Artist,"",Rock,,2024-01-01,Test Song Success
|
||||
|
@@ -0,0 +1,74 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using DeepDrftWeb.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DeepDrftWeb.Migrations
|
||||
{
|
||||
[DbContext(typeof(DeepDrftContext))]
|
||||
[Migration("20250904233927_Initial")]
|
||||
partial class Initial
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "9.0.8");
|
||||
|
||||
modelBuilder.Entity("DeepDrftModels.Entities.TrackEntity", b =>
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("id");
|
||||
|
||||
b.Property<string>("Album")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("album");
|
||||
|
||||
b.Property<string>("Artist")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("artist");
|
||||
|
||||
b.Property<string>("EntryKey")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("entry_key");
|
||||
|
||||
b.Property<string>("Genre")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("genre");
|
||||
|
||||
b.Property<string>("ImagePath")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("image_path");
|
||||
|
||||
b.Property<DateOnly?>("ReleaseDate")
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("release_date");
|
||||
|
||||
b.Property<string>("TrackName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("track_name");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("track", (string)null);
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DeepDrftWeb.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Initial : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "track",
|
||||
columns: table => new
|
||||
{
|
||||
id = table.Column<long>(type: "INTEGER", nullable: false)
|
||||
.Annotation("Sqlite:Autoincrement", true),
|
||||
entry_key = table.Column<string>(type: "TEXT", maxLength: 100, nullable: false),
|
||||
track_name = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
|
||||
artist = table.Column<string>(type: "TEXT", maxLength: 200, nullable: false),
|
||||
album = table.Column<string>(type: "TEXT", maxLength: 200, nullable: true),
|
||||
genre = table.Column<string>(type: "TEXT", maxLength: 100, nullable: true),
|
||||
release_date = table.Column<DateOnly>(type: "TEXT", nullable: true),
|
||||
image_path = table.Column<string>(type: "TEXT", maxLength: 500, nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_track", x => x.id);
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "track");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using DeepDrftWeb.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace DeepDrftWeb.Migrations
|
||||
{
|
||||
[DbContext(typeof(DeepDrftContext))]
|
||||
partial class DeepDrftContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "9.0.8");
|
||||
|
||||
modelBuilder.Entity("DeepDrftModels.Entities.TrackEntity", b =>
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("id");
|
||||
|
||||
b.Property<string>("Album")
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("album");
|
||||
|
||||
b.Property<string>("Artist")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("artist");
|
||||
|
||||
b.Property<string>("EntryKey")
|
||||
.IsRequired()
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("entry_key");
|
||||
|
||||
b.Property<string>("Genre")
|
||||
.HasMaxLength(100)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("genre");
|
||||
|
||||
b.Property<string>("ImagePath")
|
||||
.HasMaxLength(500)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("image_path");
|
||||
|
||||
b.Property<DateOnly?>("ReleaseDate")
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("release_date");
|
||||
|
||||
b.Property<string>("TrackName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(200)
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("track_name");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("track", (string)null);
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user