Add project files.

This commit is contained in:
Atakan Doğan Özban
2026-02-13 23:40:52 +01:00
parent cf37f33a1e
commit 202dc16a52
199 changed files with 98481 additions and 0 deletions
@@ -0,0 +1,44 @@
namespace atakanozbancom.Migrations
{
using System;
using System.Data.Entity.Migrations;
public partial class InitialCreate : DbMigration
{
public override void Up()
{
CreateTable(
"dbo.admins",
c => new
{
id = c.Int(nullable: false, identity: true),
username = c.String(),
password = c.String(),
})
.PrimaryKey(t => t.id);
CreateTable(
"dbo.myprojects",
c => new
{
id = c.Int(nullable: false, identity: true),
image = c.String(),
title = c.String(),
description = c.String(),
admin_id = c.Int(),
})
.PrimaryKey(t => t.id)
.ForeignKey("dbo.admins", t => t.admin_id)
.Index(t => t.admin_id);
}
public override void Down()
{
DropForeignKey("dbo.myprojects", "admin_id", "dbo.admins");
DropIndex("dbo.myprojects", new[] { "admin_id" });
DropTable("dbo.myprojects");
DropTable("dbo.admins");
}
}
}