From 771b949618bb4e07c09c2fb94a7f92e13f471b9e Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 25 Dec 2025 19:59:26 +0100 Subject: Initial commit --- ShareGuard.Web/Migrations/20251222192008_Init.cs | 37 ++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 ShareGuard.Web/Migrations/20251222192008_Init.cs (limited to 'ShareGuard.Web/Migrations/20251222192008_Init.cs') diff --git a/ShareGuard.Web/Migrations/20251222192008_Init.cs b/ShareGuard.Web/Migrations/20251222192008_Init.cs new file mode 100644 index 0000000..d301a33 --- /dev/null +++ b/ShareGuard.Web/Migrations/20251222192008_Init.cs @@ -0,0 +1,37 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace ShareGuard.Web.Migrations +{ + /// + public partial class Init : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Links", + columns: table => new + { + Id = table.Column(type: "INTEGER", nullable: false) + .Annotation("Sqlite:Autoincrement", true), + Token = table.Column(type: "TEXT", nullable: false), + Name = table.Column(type: "TEXT", nullable: false), + IpAddress = table.Column(type: "TEXT", nullable: false), + PeerPublicKey = table.Column(type: "TEXT", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Links", x => x.Id); + }); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "Links"); + } + } +} -- cgit v1.2.3