mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-08-22 00:54:06 +02:00
.config
.run
.workdir
Agent
Common
Controller
Phantom.Controller
Phantom.Controller.Database
Phantom.Controller.Database.Postgres
Migrations
20221007033307_Agents.Designer.cs
20221007033307_Agents.cs
20221007095438_Instances.Designer.cs
20221007095438_Instances.cs
20221008163849_Identity.Designer.cs
20221008163849_Identity.cs
20221010193220_InstanceJvmArguments.Designer.cs
20221010193220_InstanceJvmArguments.cs
20221016035515_AuditLog.Designer.cs
20221016035515_AuditLog.cs
20221018231328_AgentVersion.Designer.cs
20221018231328_AgentVersion.cs
20221021125232_Permissions.Designer.cs
20221021125232_Permissions.cs
20230213040522_AuditLogRename.Designer.cs
20230213040522_AuditLogRename.cs
20230215101444_EventLog.Designer.cs
20230215101444_EventLog.cs
20231008122637_ReplaceIdentity.Designer.cs
20231008122637_ReplaceIdentity.cs
20231008123315_ReplaceIdentity2.Designer.cs
20231008123315_ReplaceIdentity2.cs
20240407211636_UserAgentAccess.Designer.cs
20240407211636_UserAgentAccess.cs
ApplicationDbContextModelSnapshot.cs
ApplicationDbContextDesignFactory.cs
ApplicationDbContextFactory.cs
LazyDbContext.cs
Phantom.Controller.Database.Postgres.csproj
Phantom.Controller.Minecraft
Phantom.Controller.Services
Docker
Utils
Web
.dockerignore
.gitattributes
.gitignore
AddMigration.bat
AddMigration.sh
Directory.Build.props
Directory.Build.targets
Dockerfile
LICENSE
Packages.props
PhantomPanel.sln
README.md
global.json
43 lines
1.5 KiB
C#
43 lines
1.5 KiB
C#
using System;
|
|
using System.Text.Json;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Phantom.Controller.Database.Postgres.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class EventLog : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "EventLog",
|
|
schema: "system",
|
|
columns: table => new
|
|
{
|
|
EventGuid = table.Column<Guid>(type: "uuid", nullable: false),
|
|
UtcTime = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
|
|
AgentGuid = table.Column<Guid>(type: "uuid", nullable: true),
|
|
EventType = table.Column<string>(type: "text", nullable: false),
|
|
SubjectType = table.Column<string>(type: "text", nullable: false),
|
|
SubjectId = table.Column<string>(type: "text", nullable: false),
|
|
Data = table.Column<JsonDocument>(type: "jsonb", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_EventLog", x => x.EventGuid);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "EventLog",
|
|
schema: "system");
|
|
}
|
|
}
|
|
}
|