2982 lines
170 KiB
C#
2982 lines
170 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace APT.Data.Migrations.Migrations
|
|
{
|
|
public partial class hmr2025110701 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<Guid>(
|
|
name: "AREA_ID",
|
|
table: "T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE",
|
|
type: "uniqueidentifier",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "EVALUATE_LEVEL",
|
|
table: "T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_CRUCIAL_LICENSE_JOB_RISK",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
CRUCIAL_LICENSE_JOB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTERPRISE_LIBRARY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
RISK_NAME = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_CRUCIAL_LICENSE_JOB_RISK", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_CRUCIAL_LICENSE_JOB_RISK_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_CRUCIAL_LICENSE_JOB_RISK_T_FO_CRUCIAL_LICENSE_JOB_CRUCIAL_LICENSE_JOB_ID",
|
|
column: x => x.CRUCIAL_LICENSE_JOB_ID,
|
|
principalTable: "T_FO_CRUCIAL_LICENSE_JOB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_CRUCIAL_LICENSE_OUTSOURCE_RISK",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
CRUCIAL_LICENSE_JOB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTERPRISE_LIBRARY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
RISK_NAME = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_CRUCIAL_LICENSE_OUTSOURCE_RISK", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_CRUCIAL_LICENSE_OUTSOURCE_RISK_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_CRUCIAL_LICENSE_OUTSOURCE_RISK_T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE_CRUCIAL_LICENSE_JOB_ID",
|
|
column: x => x.CRUCIAL_LICENSE_JOB_ID,
|
|
principalTable: "T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_EDUCATIONAL",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
NAME = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_EDUCATIONAL", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_EDUCATIONAL_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_TYPE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
NAME = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_TYPE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_TYPE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_LEADER_WELL_RECORD",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
APPLY_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
APPLY_DEPARTMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
COMPANY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
PRODUCTION_UNIT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
JOB_START_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
JOB_END_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CLASS_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
STATUS = table.Column<int>(type: "int", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_LEADER_WELL_RECORD", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_T_FM_CLASS_CLASS_ID",
|
|
column: x => x.CLASS_ID,
|
|
principalTable: "T_FM_CLASS",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_T_FM_DEPARTMENT_APPLY_DEPARTMENT_ID",
|
|
column: x => x.APPLY_DEPARTMENT_ID,
|
|
principalTable: "T_FM_DEPARTMENT",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_T_FM_DEPARTMENT_COMPANY_ID",
|
|
column: x => x.COMPANY_ID,
|
|
principalTable: "T_FM_DEPARTMENT",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_T_FM_USER_APPLY_USER_ID",
|
|
column: x => x.APPLY_USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_T_FM_USER_PRODUCTION_UNIT_SET_PRODUCTION_UNIT_ID",
|
|
column: x => x.PRODUCTION_UNIT_ID,
|
|
principalTable: "T_FM_USER_PRODUCTION_UNIT_SET",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_PROFESSIONAL_CATEGORY",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
NAME = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_PROFESSIONAL_CATEGORY", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_CATEGORY_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_TECH_DISCLOSURE_FROM_SAFE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
CODE = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
NAME = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
OPERATION_STEP_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DISCLOSURE_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
JOB_LOCATION = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DEPARTMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DisclosureContent = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
|
|
FORM_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_TECH_DISCLOSURE_FROM_SAFE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_SAFE_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
|
column: x => x.DEPARTMENT_ID,
|
|
principalTable: "T_FM_DEPARTMENT",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_SAFE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_SAFE_T_FM_USER_USER_ID",
|
|
column: x => x.USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_SAFE_T_HM_OPERATION_STEP_OPERATION_STEP_ID",
|
|
column: x => x.OPERATION_STEP_ID,
|
|
principalTable: "T_HM_OPERATION_STEP",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_TECH_DISCLOSURE_FROM_TECH",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
CODE = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
NAME = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
OPERATION_STEP_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DISCLOSURE_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
JOB_LOCATION = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DEPARTMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DisclosureContent = table.Column<string>(type: "nvarchar(2000)", maxLength: 2000, nullable: true),
|
|
FORM_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_TECH_DISCLOSURE_FROM_TECH", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_TECH_T_FM_DEPARTMENT_DEPARTMENT_ID",
|
|
column: x => x.DEPARTMENT_ID,
|
|
principalTable: "T_FM_DEPARTMENT",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_TECH_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_TECH_T_FM_USER_USER_ID",
|
|
column: x => x.USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_TECH_T_HM_OPERATION_STEP_OPERATION_STEP_ID",
|
|
column: x => x.OPERATION_STEP_ID,
|
|
principalTable: "T_HM_OPERATION_STEP",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_USER_TYPE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
NAME = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_USER_TYPE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_USER_TYPE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
APPLY_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
APPLY_DEPARTMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
COMPANY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
PRODUCTION_UNIT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CODE = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
OPERATION_STEP_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
AUDIT_LEVEL = table.Column<int>(type: "int", nullable: false),
|
|
EVALUATE_LEVEL = table.Column<int>(type: "int", nullable: false),
|
|
FIRE_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FIRE_DEPARTMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
SAFE_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
AREA_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
JOB_LOCATION = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
TYPE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
JOB_CONTENT = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
MONITOR_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
JOB_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
JOB_END_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
COMPLETED_CONDITION = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
|
IS_FIRE = table.Column<int>(type: "int", nullable: true),
|
|
ACT_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
USER_DEAL_STATUS = table.Column<int>(type: "int", nullable: true),
|
|
SAFE_DEAL_STATUS = table.Column<int>(type: "int", nullable: true),
|
|
DISPATCH_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DISPATCH_DEAL_STATUS = table.Column<int>(type: "int", nullable: true),
|
|
COMPLETED_CONTENT = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
|
IS_LEAVE = table.Column<int>(type: "int", nullable: true),
|
|
ACT_END_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
LEAVE_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
USER_DEAL_FINISH_STATUS = table.Column<int>(type: "int", nullable: true),
|
|
SAFE_DEAL_FINISH_STATUS = table.Column<int>(type: "int", nullable: true),
|
|
STATUS = table.Column<int>(type: "int", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_FM_DEPARTMENT_APPLY_DEPARTMENT_ID",
|
|
column: x => x.APPLY_DEPARTMENT_ID,
|
|
principalTable: "T_FM_DEPARTMENT",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_FM_DEPARTMENT_COMPANY_ID",
|
|
column: x => x.COMPANY_ID,
|
|
principalTable: "T_FM_DEPARTMENT",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_FM_DEPARTMENT_FIRE_DEPARTMENT_ID",
|
|
column: x => x.FIRE_DEPARTMENT_ID,
|
|
principalTable: "T_FM_DEPARTMENT",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_FM_USER_APPLY_USER_ID",
|
|
column: x => x.APPLY_USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_FM_USER_DISPATCH_USER_ID",
|
|
column: x => x.DISPATCH_USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_FM_USER_FIRE_USER_ID",
|
|
column: x => x.FIRE_USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_FM_USER_MONITOR_USER_ID",
|
|
column: x => x.MONITOR_USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_FM_USER_PRODUCTION_UNIT_SET_PRODUCTION_UNIT_ID",
|
|
column: x => x.PRODUCTION_UNIT_ID,
|
|
principalTable: "T_FM_USER_PRODUCTION_UNIT_SET",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_FM_USER_SAFE_USER_ID",
|
|
column: x => x.SAFE_USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_FO_FIRE_TYPE_TYPE_ID",
|
|
column: x => x.TYPE_ID,
|
|
principalTable: "T_FO_FIRE_TYPE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_HM_OPERATION_STEP_OPERATION_STEP_ID",
|
|
column: x => x.OPERATION_STEP_ID,
|
|
principalTable: "T_HM_OPERATION_STEP",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_T_SK_RISK_AREA_AREA_ID",
|
|
column: x => x.AREA_ID,
|
|
principalTable: "T_SK_RISK_AREA",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_WB",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
APPLY_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
APPLY_DEPARTMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
COMPANY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
PRODUCTION_UNIT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CODE = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
OPERATION_STEP_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
AUDIT_LEVEL = table.Column<int>(type: "int", nullable: false),
|
|
EVALUATE_LEVEL = table.Column<int>(type: "int", nullable: false),
|
|
RELATED_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DPARTMENT_NAME = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
USER_NAME = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
USER_PHONE = table.Column<int>(type: "int", maxLength: 11, nullable: true),
|
|
SAFE_USER_NAME = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
SAFE_USER_PHONE = table.Column<int>(type: "int", maxLength: 11, nullable: true),
|
|
AREA_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
JOB_LOCATION = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
TYPE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
JOB_CONTENT = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
MONITOR_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
JOB_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
JOB_END_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
COMPLETED_CONDITION = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
|
IS_FIRE = table.Column<int>(type: "int", nullable: true),
|
|
ACT_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
USER_DEAL_STATUS = table.Column<int>(type: "int", nullable: true),
|
|
SAFE_DEAL_STATUS = table.Column<int>(type: "int", nullable: true),
|
|
COMPLETED_CONTENT = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
|
|
IS_LEAVE = table.Column<int>(type: "int", nullable: true),
|
|
ACT_END_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
LEAVE_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
USER_DEAL_FINISH_STATUS = table.Column<int>(type: "int", nullable: true),
|
|
SAFE_DEAL_FINISH_STATUS = table.Column<int>(type: "int", nullable: true),
|
|
STATUS = table.Column<int>(type: "int", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_WB", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_T_FM_DEPARTMENT_APPLY_DEPARTMENT_ID",
|
|
column: x => x.APPLY_DEPARTMENT_ID,
|
|
principalTable: "T_FM_DEPARTMENT",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_T_FM_DEPARTMENT_COMPANY_ID",
|
|
column: x => x.COMPANY_ID,
|
|
principalTable: "T_FM_DEPARTMENT",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_T_FM_USER_APPLY_USER_ID",
|
|
column: x => x.APPLY_USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_T_FM_USER_MONITOR_USER_ID",
|
|
column: x => x.MONITOR_USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_T_FM_USER_PRODUCTION_UNIT_SET_PRODUCTION_UNIT_ID",
|
|
column: x => x.PRODUCTION_UNIT_ID,
|
|
principalTable: "T_FM_USER_PRODUCTION_UNIT_SET",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_T_FO_FIRE_TYPE_TYPE_ID",
|
|
column: x => x.TYPE_ID,
|
|
principalTable: "T_FO_FIRE_TYPE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_T_HM_OPERATION_STEP_OPERATION_STEP_ID",
|
|
column: x => x.OPERATION_STEP_ID,
|
|
principalTable: "T_HM_OPERATION_STEP",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_T_SK_RISK_AREA_AREA_ID",
|
|
column: x => x.AREA_ID,
|
|
principalTable: "T_SK_RISK_AREA",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_LEADER_WELL_RECORD_DETAIL",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
LEADER_WELL_RECORD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
START_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
END_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
DESCRIPTION = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
QUESTION = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
MEASURE = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
USER_DEAL_STATUS = table.Column<int>(type: "int", nullable: true),
|
|
ITEM = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
PLACE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
PRE_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
PRE_USER_DEAL_STATUS = table.Column<int>(type: "int", nullable: true),
|
|
AFTER_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
AFTER_USER_DEAL_STATUS = table.Column<int>(type: "int", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_LEADER_WELL_RECORD_DETAIL", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_DETAIL_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_DETAIL_T_FM_USER_AFTER_USER_ID",
|
|
column: x => x.AFTER_USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_DETAIL_T_FM_USER_PRE_USER_ID",
|
|
column: x => x.PRE_USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_DETAIL_T_FM_USER_USER_ID",
|
|
column: x => x.USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_DETAIL_T_FO_LEADER_WELL_RECORD_LEADER_WELL_RECORD_ID",
|
|
column: x => x.LEADER_WELL_RECORD_ID,
|
|
principalTable: "T_FO_LEADER_WELL_RECORD",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_LEADER_WELL_RECORD_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
LEADER_WELL_RECORD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_LEADER_WELL_RECORD_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_FILE_T_FO_LEADER_WELL_RECORD_LEADER_WELL_RECORD_ID",
|
|
column: x => x.LEADER_WELL_RECORD_ID,
|
|
principalTable: "T_FO_LEADER_WELL_RECORD",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_LEADER_WELL_RECORD_USER",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
LEADER_WELL_RECORD_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DEAL_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_LEADER_WELL_RECORD_USER", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_USER_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_USER_T_FM_USER_USER_ID",
|
|
column: x => x.USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_USER_T_FO_LEADER_WELL_RECORD_LEADER_WELL_RECORD_ID",
|
|
column: x => x.LEADER_WELL_RECORD_ID,
|
|
principalTable: "T_FO_LEADER_WELL_RECORD",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_TECH_POST",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
NAME = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
PROFESSIONAL_CATEGORY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_TECH_POST", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_POST_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_POST_T_FO_PROFESSIONAL_CATEGORY_PROFESSIONAL_CATEGORY_ID",
|
|
column: x => x.PROFESSIONAL_CATEGORY_ID,
|
|
principalTable: "T_FO_PROFESSIONAL_CATEGORY",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
TECH_DISCLOSURE_FROM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DEAL_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON_T_FM_USER_USER_ID",
|
|
column: x => x.USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON_T_FO_TECH_DISCLOSURE_FROM_SAFE_TECH_DISCLOSURE_FROM_ID",
|
|
column: x => x.TECH_DISCLOSURE_FROM_ID,
|
|
principalTable: "T_FO_TECH_DISCLOSURE_FROM_SAFE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
TECH_DISCLOSURE_FROM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DEAL_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON_T_FM_USER_USER_ID",
|
|
column: x => x.USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON_T_FO_TECH_DISCLOSURE_FROM_TECH_TECH_DISCLOSURE_FROM_ID",
|
|
column: x => x.TECH_DISCLOSURE_FROM_ID,
|
|
principalTable: "T_FO_TECH_DISCLOSURE_FROM_TECH",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_DETAIL",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
JOB_STEP = table.Column<int>(type: "int", nullable: true),
|
|
CONTENT = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
IS_CONFIRM = table.Column<int>(type: "int", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_DETAIL", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_DETAIL_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_DETAIL_T_FO_FIRE_JOB_FIRE_JOB_ID",
|
|
column: x => x.FIRE_JOB_ID,
|
|
principalTable: "T_FO_FIRE_JOB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_FILE_T_FO_FIRE_JOB_FIRE_JOB_ID",
|
|
column: x => x.FIRE_JOB_ID,
|
|
principalTable: "T_FO_FIRE_JOB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_FIRE_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_JOB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_FIRE_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_FIRE_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_FIRE_FILE_T_FO_FIRE_JOB_FIRE_JOB_JOB_ID",
|
|
column: x => x.FIRE_JOB_JOB_ID,
|
|
principalTable: "T_FO_FIRE_JOB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_FIRE_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_MONITOR_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_MONITOR_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_MONITOR_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_MONITOR_FILE_T_FO_FIRE_JOB_FIRE_JOB_ID",
|
|
column: x => x.FIRE_JOB_ID,
|
|
principalTable: "T_FO_FIRE_JOB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_MONITOR_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_RISK",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTERPRISE_LIBRARY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
RISK_NAME = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_RISK", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_RISK_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_RISK_T_FO_FIRE_JOB_FIRE_JOB_ID",
|
|
column: x => x.FIRE_JOB_ID,
|
|
principalTable: "T_FO_FIRE_JOB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_USER",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
DEAL_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
USER_TYPE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CERTIFICATE_NAME = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
CERTIFICATE_CODE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_USER", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_USER_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_USER_T_FM_USER_USER_ID",
|
|
column: x => x.USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_USER_T_FO_FIRE_JOB_FIRE_JOB_ID",
|
|
column: x => x.FIRE_JOB_ID,
|
|
principalTable: "T_FO_FIRE_JOB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_USER_T_FO_USER_TYPE_USER_TYPE_ID",
|
|
column: x => x.USER_TYPE_ID,
|
|
principalTable: "T_FO_USER_TYPE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_WB_DETAIL",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_WB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
JOB_STEP = table.Column<int>(type: "int", nullable: true),
|
|
CONTENT = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
IS_CONFIRM = table.Column<int>(type: "int", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_WB_DETAIL", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_DETAIL_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_DETAIL_T_FO_FIRE_JOB_WB_FIRE_JOB_WB_ID",
|
|
column: x => x.FIRE_JOB_WB_ID,
|
|
principalTable: "T_FO_FIRE_JOB_WB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_WB_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_WB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_WB_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_FILE_T_FO_FIRE_JOB_WB_FIRE_JOB_WB_ID",
|
|
column: x => x.FIRE_JOB_WB_ID,
|
|
principalTable: "T_FO_FIRE_JOB_WB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_WB_FIRE_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_WB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_WB_FIRE_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_FIRE_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_FIRE_FILE_T_FO_FIRE_JOB_WB_FIRE_JOB_WB_ID",
|
|
column: x => x.FIRE_JOB_WB_ID,
|
|
principalTable: "T_FO_FIRE_JOB_WB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_FIRE_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_WB_MONITOR_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_WB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_WB_MONITOR_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_MONITOR_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_MONITOR_FILE_T_FO_FIRE_JOB_WB_FIRE_JOB_WB_ID",
|
|
column: x => x.FIRE_JOB_WB_ID,
|
|
principalTable: "T_FO_FIRE_JOB_WB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_MONITOR_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_WB_RISK",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_WB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTERPRISE_LIBRARY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
RISK_NAME = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_WB_RISK", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_RISK_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_RISK_T_FO_FIRE_JOB_WB_FIRE_JOB_WB_ID",
|
|
column: x => x.FIRE_JOB_WB_ID,
|
|
principalTable: "T_FO_FIRE_JOB_WB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_WB_USER",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_WB_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
DEAL_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
USER_TYPE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CERTIFICATE_NAME = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
CERTIFICATE_CODE = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
USER_NAME = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true),
|
|
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_WB_USER", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_USER_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_USER_T_FM_USER_USER_ID",
|
|
column: x => x.USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_USER_T_FO_FIRE_JOB_WB_FIRE_JOB_WB_ID",
|
|
column: x => x.FIRE_JOB_WB_ID,
|
|
principalTable: "T_FO_FIRE_JOB_WB",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_USER_T_FO_USER_TYPE_USER_TYPE_ID",
|
|
column: x => x.USER_TYPE_ID,
|
|
principalTable: "T_FO_USER_TYPE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_LEADER_WELL_RECORD_DETAIL_AREA",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
LEADER_WELL_RECORD_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
AREA_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_LEADER_WELL_RECORD_DETAIL_AREA", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_DETAIL_AREA_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_DETAIL_AREA_T_FO_LEADER_WELL_RECORD_DETAIL_LEADER_WELL_RECORD_DETAIL_ID",
|
|
column: x => x.LEADER_WELL_RECORD_DETAIL_ID,
|
|
principalTable: "T_FO_LEADER_WELL_RECORD_DETAIL",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_DETAIL_AREA_T_SK_RISK_AREA_AREA_ID",
|
|
column: x => x.AREA_ID,
|
|
principalTable: "T_SK_RISK_AREA",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_LEADER_WELL_RECORD_DETAIL_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
LEADER_WELL_RECORD_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_LEADER_WELL_RECORD_DETAIL_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_DETAIL_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_DETAIL_FILE_T_FO_LEADER_WELL_RECORD_DETAIL_LEADER_WELL_RECORD_DETAIL_ID",
|
|
column: x => x.LEADER_WELL_RECORD_DETAIL_ID,
|
|
principalTable: "T_FO_LEADER_WELL_RECORD_DETAIL",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_LEADER_WELL_RECORD_DETAIL_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
APPLY_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
APPLY_DEPARTMENT_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
COMPANY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CODE = table.Column<string>(type: "nvarchar(30)", maxLength: 30, nullable: true),
|
|
SEX = table.Column<int>(type: "int", nullable: false),
|
|
AGE = table.Column<int>(type: "int", nullable: true),
|
|
EDUCATIONAL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
SCHOOL = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
MAJOR = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
GRADUATION_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
YEAR = table.Column<int>(type: "int", nullable: true),
|
|
PROFESSIONAL_CATEGORY_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
TECH_POST_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
JOB_START_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
JOB_END_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_PROFESSIONAL_RESUME", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_T_FM_DEPARTMENT_APPLY_DEPARTMENT_ID",
|
|
column: x => x.APPLY_DEPARTMENT_ID,
|
|
principalTable: "T_FM_DEPARTMENT",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_T_FM_DEPARTMENT_COMPANY_ID",
|
|
column: x => x.COMPANY_ID,
|
|
principalTable: "T_FM_DEPARTMENT",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_T_FM_USER_APPLY_USER_ID",
|
|
column: x => x.APPLY_USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_T_FM_USER_USER_ID",
|
|
column: x => x.USER_ID,
|
|
principalTable: "T_FM_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_T_FO_EDUCATIONAL_EDUCATIONAL_ID",
|
|
column: x => x.EDUCATIONAL_ID,
|
|
principalTable: "T_FO_EDUCATIONAL",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_T_FO_PROFESSIONAL_CATEGORY_PROFESSIONAL_CATEGORY_ID",
|
|
column: x => x.PROFESSIONAL_CATEGORY_ID,
|
|
principalTable: "T_FO_PROFESSIONAL_CATEGORY",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_T_FO_TECH_POST_TECH_POST_ID",
|
|
column: x => x.TECH_POST_ID,
|
|
principalTable: "T_FO_TECH_POST",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_DETAIL_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_DETAIL_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_DETAIL_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_DETAIL_FILE_T_FO_FIRE_JOB_DETAIL_FIRE_JOB_DETAIL_ID",
|
|
column: x => x.FIRE_JOB_DETAIL_ID,
|
|
principalTable: "T_FO_FIRE_JOB_DETAIL",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_DETAIL_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_USER_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_USER_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_USER_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_USER_FILE_T_FO_FIRE_JOB_USER_FIRE_JOB_USER_ID",
|
|
column: x => x.FIRE_JOB_USER_ID,
|
|
principalTable: "T_FO_FIRE_JOB_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_USER_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_WB_DETAIL_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_WB_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_WB_DETAIL_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_DETAIL_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_DETAIL_FILE_T_FO_FIRE_JOB_WB_DETAIL_FIRE_JOB_WB_DETAIL_ID",
|
|
column: x => x.FIRE_JOB_WB_DETAIL_ID,
|
|
principalTable: "T_FO_FIRE_JOB_WB_DETAIL",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_DETAIL_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_FIRE_JOB_WB_USER_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
FIRE_JOB_WB_USER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_FIRE_JOB_WB_USER_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_USER_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_USER_FILE_T_FO_FIRE_JOB_WB_USER_FIRE_JOB_WB_USER_ID",
|
|
column: x => x.FIRE_JOB_WB_USER_ID,
|
|
principalTable: "T_FO_FIRE_JOB_WB_USER",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_FIRE_JOB_WB_USER_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
PROFESSIONAL_RESUME_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE_T_FO_PROFESSIONAL_RESUME_PROFESSIONAL_RESUME_ID",
|
|
column: x => x.PROFESSIONAL_RESUME_ID,
|
|
principalTable: "T_FO_PROFESSIONAL_RESUME",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_DETAIL",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
PROFESSIONAL_RESUME_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
NUM = table.Column<int>(type: "int", nullable: true),
|
|
UNIT = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
START_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
END_DATE = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
WORK_YEAR = table.Column<decimal>(type: "decimal(18,2)", nullable: true),
|
|
WORK_POST = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: true),
|
|
POST_DUTY = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
WORK_ACHIEVEMENT = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
SKILL_IMPROVE = table.Column<string>(type: "nvarchar(500)", maxLength: 500, nullable: true),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_PROFESSIONAL_RESUME_DETAIL", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_DETAIL_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_DETAIL_T_FO_PROFESSIONAL_RESUME_PROFESSIONAL_RESUME_ID",
|
|
column: x => x.PROFESSIONAL_RESUME_ID,
|
|
principalTable: "T_FO_PROFESSIONAL_RESUME",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
PROFESSIONAL_RESUME_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE_T_FO_PROFESSIONAL_RESUME_PROFESSIONAL_RESUME_ID",
|
|
column: x => x.PROFESSIONAL_RESUME_ID,
|
|
principalTable: "T_FO_PROFESSIONAL_RESUME",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
PROFESSIONAL_RESUME_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE_T_FO_PROFESSIONAL_RESUME_PROFESSIONAL_RESUME_ID",
|
|
column: x => x.PROFESSIONAL_RESUME_ID,
|
|
principalTable: "T_FO_PROFESSIONAL_RESUME",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_OTHER_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
PROFESSIONAL_RESUME_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_PROFESSIONAL_RESUME_OTHER_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_OTHER_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_OTHER_FILE_T_FO_PROFESSIONAL_RESUME_PROFESSIONAL_RESUME_ID",
|
|
column: x => x.PROFESSIONAL_RESUME_ID,
|
|
principalTable: "T_FO_PROFESSIONAL_RESUME",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_OTHER_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_POST_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
PROFESSIONAL_RESUME_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_PROFESSIONAL_RESUME_POST_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_POST_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_POST_FILE_T_FO_PROFESSIONAL_RESUME_PROFESSIONAL_RESUME_ID",
|
|
column: x => x.PROFESSIONAL_RESUME_ID,
|
|
principalTable: "T_FO_PROFESSIONAL_RESUME",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_POST_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_TRAIN_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
PROFESSIONAL_RESUME_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_PROFESSIONAL_RESUME_TRAIN_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_TRAIN_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_TRAIN_FILE_T_FO_PROFESSIONAL_RESUME_PROFESSIONAL_RESUME_ID",
|
|
column: x => x.PROFESSIONAL_RESUME_ID,
|
|
principalTable: "T_FO_PROFESSIONAL_RESUME",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_TRAIN_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_DETAIL_FILE",
|
|
columns: table => new
|
|
{
|
|
ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
PROFESSIONAL_RESUME_DETAIL_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IMG_FILE_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
IS_DELETED = table.Column<bool>(type: "bit", nullable: false),
|
|
ORG_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
|
|
ENTITY_ORG_TPYE = table.Column<int>(type: "int", nullable: false),
|
|
FORM_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
FLOW_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_SEND_STATUS = table.Column<int>(type: "int", nullable: false),
|
|
FLOW_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
CREATE_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
MODIFY_TIME = table.Column<DateTime>(type: "datetime2", nullable: true),
|
|
CREATER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
|
|
MODIFIER_ID = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_T_FO_PROFESSIONAL_RESUME_DETAIL_FILE", x => x.ID);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_DETAIL_FILE_T_FM_ORGANIZATION_ORG_ID",
|
|
column: x => x.ORG_ID,
|
|
principalTable: "T_FM_ORGANIZATION",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_DETAIL_FILE_T_FO_PROFESSIONAL_RESUME_DETAIL_PROFESSIONAL_RESUME_DETAIL_ID",
|
|
column: x => x.PROFESSIONAL_RESUME_DETAIL_ID,
|
|
principalTable: "T_FO_PROFESSIONAL_RESUME_DETAIL",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
table.ForeignKey(
|
|
name: "FK_T_FO_PROFESSIONAL_RESUME_DETAIL_FILE_T_PF_IMG_FILE_IMG_FILE_ID",
|
|
column: x => x.IMG_FILE_ID,
|
|
principalTable: "T_PF_IMG_FILE",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
});
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE_AREA_ID",
|
|
table: "T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE",
|
|
column: "AREA_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_CRUCIAL_LICENSE_JOB_RISK_CRUCIAL_LICENSE_JOB_ID",
|
|
table: "T_FO_CRUCIAL_LICENSE_JOB_RISK",
|
|
column: "CRUCIAL_LICENSE_JOB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_CRUCIAL_LICENSE_JOB_RISK_ORG_ID",
|
|
table: "T_FO_CRUCIAL_LICENSE_JOB_RISK",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_CRUCIAL_LICENSE_OUTSOURCE_RISK_CRUCIAL_LICENSE_JOB_ID",
|
|
table: "T_FO_CRUCIAL_LICENSE_OUTSOURCE_RISK",
|
|
column: "CRUCIAL_LICENSE_JOB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_CRUCIAL_LICENSE_OUTSOURCE_RISK_ORG_ID",
|
|
table: "T_FO_CRUCIAL_LICENSE_OUTSOURCE_RISK",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_EDUCATIONAL_ORG_ID",
|
|
table: "T_FO_EDUCATIONAL",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_APPLY_DEPARTMENT_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "APPLY_DEPARTMENT_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_APPLY_USER_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "APPLY_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_AREA_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "AREA_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_COMPANY_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "COMPANY_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_DISPATCH_USER_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "DISPATCH_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_FIRE_DEPARTMENT_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "FIRE_DEPARTMENT_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_FIRE_USER_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "FIRE_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_MONITOR_USER_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "MONITOR_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_OPERATION_STEP_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "OPERATION_STEP_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_ORG_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_PRODUCTION_UNIT_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "PRODUCTION_UNIT_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_SAFE_USER_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "SAFE_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_TYPE_ID",
|
|
table: "T_FO_FIRE_JOB",
|
|
column: "TYPE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_DETAIL_FIRE_JOB_ID",
|
|
table: "T_FO_FIRE_JOB_DETAIL",
|
|
column: "FIRE_JOB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_DETAIL_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_DETAIL",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_DETAIL_FILE_FIRE_JOB_DETAIL_ID",
|
|
table: "T_FO_FIRE_JOB_DETAIL_FILE",
|
|
column: "FIRE_JOB_DETAIL_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_DETAIL_FILE_IMG_FILE_ID",
|
|
table: "T_FO_FIRE_JOB_DETAIL_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_DETAIL_FILE_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_DETAIL_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_FILE_FIRE_JOB_ID",
|
|
table: "T_FO_FIRE_JOB_FILE",
|
|
column: "FIRE_JOB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_FILE_IMG_FILE_ID",
|
|
table: "T_FO_FIRE_JOB_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_FILE_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_FIRE_FILE_FIRE_JOB_JOB_ID",
|
|
table: "T_FO_FIRE_JOB_FIRE_FILE",
|
|
column: "FIRE_JOB_JOB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_FIRE_FILE_IMG_FILE_ID",
|
|
table: "T_FO_FIRE_JOB_FIRE_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_FIRE_FILE_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_FIRE_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_MONITOR_FILE_FIRE_JOB_ID",
|
|
table: "T_FO_FIRE_JOB_MONITOR_FILE",
|
|
column: "FIRE_JOB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_MONITOR_FILE_IMG_FILE_ID",
|
|
table: "T_FO_FIRE_JOB_MONITOR_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_MONITOR_FILE_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_MONITOR_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_RISK_FIRE_JOB_ID",
|
|
table: "T_FO_FIRE_JOB_RISK",
|
|
column: "FIRE_JOB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_RISK_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_RISK",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_USER_FIRE_JOB_ID",
|
|
table: "T_FO_FIRE_JOB_USER",
|
|
column: "FIRE_JOB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_USER_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_USER",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_USER_USER_ID",
|
|
table: "T_FO_FIRE_JOB_USER",
|
|
column: "USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_USER_USER_TYPE_ID",
|
|
table: "T_FO_FIRE_JOB_USER",
|
|
column: "USER_TYPE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_USER_FILE_FIRE_JOB_USER_ID",
|
|
table: "T_FO_FIRE_JOB_USER_FILE",
|
|
column: "FIRE_JOB_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_USER_FILE_IMG_FILE_ID",
|
|
table: "T_FO_FIRE_JOB_USER_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_USER_FILE_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_USER_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_APPLY_DEPARTMENT_ID",
|
|
table: "T_FO_FIRE_JOB_WB",
|
|
column: "APPLY_DEPARTMENT_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_APPLY_USER_ID",
|
|
table: "T_FO_FIRE_JOB_WB",
|
|
column: "APPLY_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_AREA_ID",
|
|
table: "T_FO_FIRE_JOB_WB",
|
|
column: "AREA_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_COMPANY_ID",
|
|
table: "T_FO_FIRE_JOB_WB",
|
|
column: "COMPANY_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_MONITOR_USER_ID",
|
|
table: "T_FO_FIRE_JOB_WB",
|
|
column: "MONITOR_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_OPERATION_STEP_ID",
|
|
table: "T_FO_FIRE_JOB_WB",
|
|
column: "OPERATION_STEP_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_WB",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_PRODUCTION_UNIT_ID",
|
|
table: "T_FO_FIRE_JOB_WB",
|
|
column: "PRODUCTION_UNIT_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_TYPE_ID",
|
|
table: "T_FO_FIRE_JOB_WB",
|
|
column: "TYPE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_DETAIL_FIRE_JOB_WB_ID",
|
|
table: "T_FO_FIRE_JOB_WB_DETAIL",
|
|
column: "FIRE_JOB_WB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_DETAIL_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_WB_DETAIL",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_DETAIL_FILE_FIRE_JOB_WB_DETAIL_ID",
|
|
table: "T_FO_FIRE_JOB_WB_DETAIL_FILE",
|
|
column: "FIRE_JOB_WB_DETAIL_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_DETAIL_FILE_IMG_FILE_ID",
|
|
table: "T_FO_FIRE_JOB_WB_DETAIL_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_DETAIL_FILE_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_WB_DETAIL_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_FILE_FIRE_JOB_WB_ID",
|
|
table: "T_FO_FIRE_JOB_WB_FILE",
|
|
column: "FIRE_JOB_WB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_FILE_IMG_FILE_ID",
|
|
table: "T_FO_FIRE_JOB_WB_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_FILE_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_WB_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_FIRE_FILE_FIRE_JOB_WB_ID",
|
|
table: "T_FO_FIRE_JOB_WB_FIRE_FILE",
|
|
column: "FIRE_JOB_WB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_FIRE_FILE_IMG_FILE_ID",
|
|
table: "T_FO_FIRE_JOB_WB_FIRE_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_FIRE_FILE_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_WB_FIRE_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_MONITOR_FILE_FIRE_JOB_WB_ID",
|
|
table: "T_FO_FIRE_JOB_WB_MONITOR_FILE",
|
|
column: "FIRE_JOB_WB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_MONITOR_FILE_IMG_FILE_ID",
|
|
table: "T_FO_FIRE_JOB_WB_MONITOR_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_MONITOR_FILE_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_WB_MONITOR_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_RISK_FIRE_JOB_WB_ID",
|
|
table: "T_FO_FIRE_JOB_WB_RISK",
|
|
column: "FIRE_JOB_WB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_RISK_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_WB_RISK",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_USER_FIRE_JOB_WB_ID",
|
|
table: "T_FO_FIRE_JOB_WB_USER",
|
|
column: "FIRE_JOB_WB_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_USER_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_WB_USER",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_USER_USER_ID",
|
|
table: "T_FO_FIRE_JOB_WB_USER",
|
|
column: "USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_USER_USER_TYPE_ID",
|
|
table: "T_FO_FIRE_JOB_WB_USER",
|
|
column: "USER_TYPE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_USER_FILE_FIRE_JOB_WB_USER_ID",
|
|
table: "T_FO_FIRE_JOB_WB_USER_FILE",
|
|
column: "FIRE_JOB_WB_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_USER_FILE_IMG_FILE_ID",
|
|
table: "T_FO_FIRE_JOB_WB_USER_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_JOB_WB_USER_FILE_ORG_ID",
|
|
table: "T_FO_FIRE_JOB_WB_USER_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_FIRE_TYPE_ORG_ID",
|
|
table: "T_FO_FIRE_TYPE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_APPLY_DEPARTMENT_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD",
|
|
column: "APPLY_DEPARTMENT_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_APPLY_USER_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD",
|
|
column: "APPLY_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_CLASS_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD",
|
|
column: "CLASS_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_COMPANY_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD",
|
|
column: "COMPANY_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_ORG_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_PRODUCTION_UNIT_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD",
|
|
column: "PRODUCTION_UNIT_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_DETAIL_AFTER_USER_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_DETAIL",
|
|
column: "AFTER_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_DETAIL_LEADER_WELL_RECORD_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_DETAIL",
|
|
column: "LEADER_WELL_RECORD_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_DETAIL_ORG_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_DETAIL",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_DETAIL_PRE_USER_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_DETAIL",
|
|
column: "PRE_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_DETAIL_USER_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_DETAIL",
|
|
column: "USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_DETAIL_AREA_AREA_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_DETAIL_AREA",
|
|
column: "AREA_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_DETAIL_AREA_LEADER_WELL_RECORD_DETAIL_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_DETAIL_AREA",
|
|
column: "LEADER_WELL_RECORD_DETAIL_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_DETAIL_AREA_ORG_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_DETAIL_AREA",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_DETAIL_FILE_IMG_FILE_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_DETAIL_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_DETAIL_FILE_LEADER_WELL_RECORD_DETAIL_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_DETAIL_FILE",
|
|
column: "LEADER_WELL_RECORD_DETAIL_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_DETAIL_FILE_ORG_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_DETAIL_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_FILE_IMG_FILE_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_FILE_LEADER_WELL_RECORD_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_FILE",
|
|
column: "LEADER_WELL_RECORD_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_FILE_ORG_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_USER_LEADER_WELL_RECORD_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_USER",
|
|
column: "LEADER_WELL_RECORD_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_USER_ORG_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_USER",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_LEADER_WELL_RECORD_USER_USER_ID",
|
|
table: "T_FO_LEADER_WELL_RECORD_USER",
|
|
column: "USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_CATEGORY_ORG_ID",
|
|
table: "T_FO_PROFESSIONAL_CATEGORY",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_APPLY_DEPARTMENT_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME",
|
|
column: "APPLY_DEPARTMENT_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_APPLY_USER_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME",
|
|
column: "APPLY_USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_COMPANY_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME",
|
|
column: "COMPANY_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME",
|
|
column: "EDUCATIONAL_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_ORG_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_PROFESSIONAL_CATEGORY_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME",
|
|
column: "PROFESSIONAL_CATEGORY_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_TECH_POST_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME",
|
|
column: "TECH_POST_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_USER_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME",
|
|
column: "USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE_IMG_FILE_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE_ORG_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE_PROFESSIONAL_RESUME_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE",
|
|
column: "PROFESSIONAL_RESUME_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_DETAIL_ORG_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_DETAIL",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_DETAIL_PROFESSIONAL_RESUME_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_DETAIL",
|
|
column: "PROFESSIONAL_RESUME_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_DETAIL_FILE_IMG_FILE_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_DETAIL_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_DETAIL_FILE_ORG_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_DETAIL_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_DETAIL_FILE_PROFESSIONAL_RESUME_DETAIL_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_DETAIL_FILE",
|
|
column: "PROFESSIONAL_RESUME_DETAIL_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE_IMG_FILE_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE_ORG_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE_PROFESSIONAL_RESUME_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE",
|
|
column: "PROFESSIONAL_RESUME_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE_IMG_FILE_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE_ORG_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE_PROFESSIONAL_RESUME_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE",
|
|
column: "PROFESSIONAL_RESUME_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_OTHER_FILE_IMG_FILE_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_OTHER_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_OTHER_FILE_ORG_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_OTHER_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_OTHER_FILE_PROFESSIONAL_RESUME_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_OTHER_FILE",
|
|
column: "PROFESSIONAL_RESUME_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_POST_FILE_IMG_FILE_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_POST_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_POST_FILE_ORG_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_POST_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_POST_FILE_PROFESSIONAL_RESUME_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_POST_FILE",
|
|
column: "PROFESSIONAL_RESUME_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_TRAIN_FILE_IMG_FILE_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_TRAIN_FILE",
|
|
column: "IMG_FILE_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_TRAIN_FILE_ORG_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_TRAIN_FILE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_PROFESSIONAL_RESUME_TRAIN_FILE_PROFESSIONAL_RESUME_ID",
|
|
table: "T_FO_PROFESSIONAL_RESUME_TRAIN_FILE",
|
|
column: "PROFESSIONAL_RESUME_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_SAFE_DEPARTMENT_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE",
|
|
column: "DEPARTMENT_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_SAFE_OPERATION_STEP_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE",
|
|
column: "OPERATION_STEP_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_SAFE_ORG_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_SAFE_USER_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE",
|
|
column: "USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON_ORG_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON_TECH_DISCLOSURE_FROM_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON",
|
|
column: "TECH_DISCLOSURE_FROM_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON_USER_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON",
|
|
column: "USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_TECH_DEPARTMENT_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_TECH",
|
|
column: "DEPARTMENT_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_TECH_OPERATION_STEP_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_TECH",
|
|
column: "OPERATION_STEP_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_TECH_ORG_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_TECH",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_TECH_USER_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_TECH",
|
|
column: "USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON_ORG_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON_TECH_DISCLOSURE_FROM_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON",
|
|
column: "TECH_DISCLOSURE_FROM_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON_USER_ID",
|
|
table: "T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON",
|
|
column: "USER_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_POST_ORG_ID",
|
|
table: "T_FO_TECH_POST",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_TECH_POST_PROFESSIONAL_CATEGORY_ID",
|
|
table: "T_FO_TECH_POST",
|
|
column: "PROFESSIONAL_CATEGORY_ID");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_T_FO_USER_TYPE_ORG_ID",
|
|
table: "T_FO_USER_TYPE",
|
|
column: "ORG_ID");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE_T_SK_RISK_AREA_AREA_ID",
|
|
table: "T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE",
|
|
column: "AREA_ID",
|
|
principalTable: "T_SK_RISK_AREA",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Restrict);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE_T_SK_RISK_AREA_AREA_ID",
|
|
table: "T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_CRUCIAL_LICENSE_JOB_RISK");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_CRUCIAL_LICENSE_OUTSOURCE_RISK");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_DETAIL_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_FIRE_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_MONITOR_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_RISK");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_USER_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_WB_DETAIL_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_WB_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_WB_FIRE_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_WB_MONITOR_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_WB_RISK");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_WB_USER_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_LEADER_WELL_RECORD_DETAIL_AREA");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_LEADER_WELL_RECORD_DETAIL_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_LEADER_WELL_RECORD_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_LEADER_WELL_RECORD_USER");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_CERTIFICATE_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_DETAIL_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_EDUCATIONAL_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_MEDICAL_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_OTHER_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_POST_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_TRAIN_FILE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_TECH_DISCLOSURE_FROM_SAFE_PERSON");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_TECH_DISCLOSURE_FROM_TECH_PERSON");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_DETAIL");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_USER");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_WB_DETAIL");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_WB_USER");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_LEADER_WELL_RECORD_DETAIL");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME_DETAIL");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_TECH_DISCLOSURE_FROM_SAFE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_TECH_DISCLOSURE_FROM_TECH");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_JOB_WB");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_USER_TYPE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_LEADER_WELL_RECORD");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_PROFESSIONAL_RESUME");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_FIRE_TYPE");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_EDUCATIONAL");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_TECH_POST");
|
|
|
|
migrationBuilder.DropTable(
|
|
name: "T_FO_PROFESSIONAL_CATEGORY");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE_AREA_ID",
|
|
table: "T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "AREA_ID",
|
|
table: "T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "EVALUATE_LEVEL",
|
|
table: "T_FO_CRUCIAL_LICENSE_JOB_OUTSOURCE");
|
|
}
|
|
}
|
|
}
|