songjun
2024-09-04 cc908053e0b5075fbfd27350b6da4b39bca9e550
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
namespace sbcLabSystem.Data.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class addUserRequestInfo : DbMigration
    {
        public override void Up()
        {
            CreateTable(
                "dbo.UserRequestInfoes",
                c => new
                    {
                        Id = c.Int(nullable: false, identity: true),
                        CompanyName = c.String(),
                        LabName = c.String(),
                        Address = c.String(),
                        Province = c.String(),
                        City = c.String(),
                        District = c.String(),
                        PostCode = c.String(),
                        ManagerName = c.String(),
                        ManagerPhone = c.String(),
                        ManagerFax = c.String(),
                        ManagerMobile = c.String(),
                        ManagerEmail = c.String(),
                        OperatorName = c.String(),
                        OperatorPhone = c.String(),
                        OperatorFax = c.String(),
                        OperatorMobile = c.String(),
                        OperatorEmail = c.String(),
                        ProjectId = c.Int(nullable: false),
                        RequestTime = c.DateTime(nullable: false),
                    })
                .PrimaryKey(t => t.Id);
            
        }
        
        public override void Down()
        {
            DropTable("dbo.UserRequestInfoes");
        }
    }
}