mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-03 13:17:33 +00:00
29 lines
792 B
C#
29 lines
792 B
C#
namespace Project_Unite.Migrations
|
|
{
|
|
using System;
|
|
using System.Data.Entity.Migrations;
|
|
|
|
public partial class auditlogs : DbMigration
|
|
{
|
|
public override void Up()
|
|
{
|
|
CreateTable(
|
|
"dbo.AuditLogs",
|
|
c => new
|
|
{
|
|
Id = c.String(nullable: false, maxLength: 128),
|
|
Level = c.Int(nullable: false),
|
|
Timestamp = c.DateTime(nullable: false),
|
|
UserId = c.String(),
|
|
Description = c.String(),
|
|
})
|
|
.PrimaryKey(t => t.Id);
|
|
|
|
}
|
|
|
|
public override void Down()
|
|
{
|
|
DropTable("dbo.AuditLogs");
|
|
}
|
|
}
|
|
}
|