29 lines
794 B
C#
29 lines
794 B
C#
|
namespace CircleScape.Migrations
|
||
|
{
|
||
|
using System;
|
||
|
using System.Data.Entity.Migrations;
|
||
|
|
||
|
public partial class Initial : DbMigration
|
||
|
{
|
||
|
public override void Up()
|
||
|
{
|
||
|
CreateTable(
|
||
|
"dbo.Users",
|
||
|
c => new
|
||
|
{
|
||
|
Id = c.Long(nullable: false, identity: true),
|
||
|
Username = c.String(nullable: false, unicode: false),
|
||
|
Password = c.String(nullable: false, unicode: false),
|
||
|
Joined = c.DateTime(nullable: false, precision: 0),
|
||
|
})
|
||
|
.PrimaryKey(t => t.Id);
|
||
|
|
||
|
}
|
||
|
|
||
|
public override void Down()
|
||
|
{
|
||
|
DropTable("dbo.Users");
|
||
|
}
|
||
|
}
|
||
|
}
|