202508060821209_addViewoutSourcingMiss.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. namespace ShwasherSys.Migrations
  2. {
  3. using System;
  4. using System.Data.Entity.Migrations;
  5. public partial class addViewoutSourcingMiss : DbMigration
  6. {
  7. public override void Up()
  8. {
  9. //CreateTable(
  10. // "dbo.N_ViewOutSourcingMiss",
  11. // c => new
  12. // {
  13. // Id = c.Int(nullable: false, identity: true),
  14. // ProductionOrderNo = c.String(nullable: false),
  15. // PlannedQuantity = c.Decimal(nullable: false, precision: 18, scale: 2),
  16. // ActualQuantity = c.Decimal(nullable: false, precision: 18, scale: 2),
  17. // MissQuantity = c.Decimal(nullable: false, precision: 18, scale: 2),
  18. // SemiProductNo = c.String(),
  19. // Material = c.String(),
  20. // Model = c.String(),
  21. // SurfaceColor = c.String(),
  22. // Rigidity = c.String(),
  23. // PartNo = c.String(),
  24. // LastModificationTime = c.DateTime(),
  25. // LastModifierUserId = c.Long(),
  26. // CreationTime = c.DateTime(nullable: false),
  27. // CreatorUserId = c.Long(),
  28. // })
  29. // .PrimaryKey(t => t.Id)
  30. // .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId)
  31. // .ForeignKey("dbo.Sys_Users", t => t.LastModifierUserId)
  32. // .Index(t => t.LastModifierUserId)
  33. // .Index(t => t.CreatorUserId);
  34. }
  35. public override void Down()
  36. {
  37. //DropForeignKey("dbo.N_ViewOutSourcingMiss", "LastModifierUserId", "dbo.Sys_Users");
  38. //DropForeignKey("dbo.N_ViewOutSourcingMiss", "CreatorUserId", "dbo.Sys_Users");
  39. //DropIndex("dbo.N_ViewOutSourcingMiss", new[] { "CreatorUserId" });
  40. //DropIndex("dbo.N_ViewOutSourcingMiss", new[] { "LastModifierUserId" });
  41. //DropTable("dbo.N_ViewOutSourcingMiss");
  42. }
  43. }
  44. }