Project-Unite/Project-Unite/Migrations/201703172305217_auditlogs.cs
2017-03-20 16:45:17 -04:00

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");
}
}
}