4 changed files with 17750 additions and 3 deletions
-
2src/Shentun.Peis.EntityFrameworkCore/DbMapping/GiveUpCheckTemplates/GiveUpCheckTemplateDbMapping.cs
-
17335src/Shentun.Peis.EntityFrameworkCore/Migrations/20260421034006_add_kaipiao_update_lis_request_add_biaoben.Designer.cs
-
126src/Shentun.Peis.EntityFrameworkCore/Migrations/20260421034006_add_kaipiao_update_lis_request_add_biaoben.cs
-
290src/Shentun.Peis.EntityFrameworkCore/Migrations/PeisDbContextModelSnapshot.cs
17335
src/Shentun.Peis.EntityFrameworkCore/Migrations/20260421034006_add_kaipiao_update_lis_request_add_biaoben.Designer.cs
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,126 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
#nullable disable |
|||
|
|||
namespace Shentun.Peis.Migrations |
|||
{ |
|||
public partial class add_kaipiao_update_lis_request_add_biaoben : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.RenameColumn( |
|||
name: "informed_consent_template_file", |
|||
table: "give_up_check_template", |
|||
newName: "give_up_check_template_file"); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "specimen_status", |
|||
table: "lis_request", |
|||
type: "character varying(50)", |
|||
maxLength: 50, |
|||
nullable: true, |
|||
comment: "标本状态 蓝豚用"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "invoice_apply", |
|||
columns: table => new |
|||
{ |
|||
id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "编号"), |
|||
customer_org_id = table.Column<Guid>(type: "uuid", nullable: false, comment: "单位编号"), |
|||
customer_org_register_id = table.Column<Guid>(type: "uuid", nullable: false, comment: "单位体检次数id"), |
|||
sales_person = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true, comment: "业务员"), |
|||
apply_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: true, comment: "申请时间"), |
|||
apply_amount = table.Column<decimal>(type: "numeric", nullable: false, comment: "申请金额"), |
|||
invoice_name = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true, comment: "开票名称"), |
|||
country_org_code = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: true, comment: "税号"), |
|||
bank = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true, comment: "业务银行"), |
|||
accounts = table.Column<string>(type: "character varying(100)", maxLength: 100, nullable: true, comment: "银行帐号"), |
|||
contact = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: true, comment: "联系人"), |
|||
contact_phone = table.Column<string>(type: "character varying(20)", maxLength: 20, nullable: true, comment: "联系电话"), |
|||
is_complete_invoicing = table.Column<char>(type: "character(1)", nullable: false, defaultValueSql: "'N'", comment: "是否完成开票"), |
|||
is_complete_payment = table.Column<char>(type: "character(1)", nullable: false, defaultValueSql: "'N'", comment: "是否完成收款"), |
|||
remark = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true, comment: "备注"), |
|||
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true), |
|||
creation_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
|||
creator_id = table.Column<Guid>(type: "uuid", nullable: false), |
|||
last_modification_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
|||
last_modifier_id = table.Column<Guid>(type: "uuid", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_invoice_apply", x => x.id); |
|||
}, |
|||
comment: "发票申请"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "invoice_record", |
|||
columns: table => new |
|||
{ |
|||
id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "编号"), |
|||
invoice_apply_id = table.Column<Guid>(type: "uuid", nullable: false, comment: "发票申请表id"), |
|||
invoice_person = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true, comment: "开票人"), |
|||
invoice_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: true, comment: "开票时间"), |
|||
invoice_amount = table.Column<decimal>(type: "numeric", nullable: false, comment: "开票金额"), |
|||
remark = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true, comment: "备注"), |
|||
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true), |
|||
creation_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
|||
creator_id = table.Column<Guid>(type: "uuid", nullable: false), |
|||
last_modification_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
|||
last_modifier_id = table.Column<Guid>(type: "uuid", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_invoice_record", x => x.id); |
|||
}, |
|||
comment: "开票记录"); |
|||
|
|||
migrationBuilder.CreateTable( |
|||
name: "payment_record", |
|||
columns: table => new |
|||
{ |
|||
id = table.Column<Guid>(type: "uuid", fixedLength: true, nullable: false, comment: "编号"), |
|||
invoice_apply_id = table.Column<Guid>(type: "uuid", nullable: false, comment: "发票申请表id"), |
|||
payment_account = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true, comment: "付款账户"), |
|||
payment_bank = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true, comment: "付款银行"), |
|||
payment_amount = table.Column<decimal>(type: "numeric", nullable: false, comment: "付款金额"), |
|||
payment_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: true, comment: "付款时间"), |
|||
collection_account = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true, comment: "收款账户"), |
|||
collection_bank = table.Column<string>(type: "character varying(50)", maxLength: 50, nullable: true, comment: "收款银行"), |
|||
Transaction_Id = table.Column<string>(type: "character varying(30)", maxLength: 30, nullable: true, comment: "交易流水号"), |
|||
remark = table.Column<string>(type: "character varying(200)", maxLength: 200, nullable: true, comment: "备注"), |
|||
concurrency_stamp = table.Column<string>(type: "character varying(40)", maxLength: 40, nullable: true), |
|||
creation_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
|||
creator_id = table.Column<Guid>(type: "uuid", nullable: false), |
|||
last_modification_time = table.Column<DateTime>(type: "timestamp without time zone", nullable: false), |
|||
last_modifier_id = table.Column<Guid>(type: "uuid", nullable: false) |
|||
}, |
|||
constraints: table => |
|||
{ |
|||
table.PrimaryKey("PK_payment_record", x => x.id); |
|||
}, |
|||
comment: "收款记录"); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DropTable( |
|||
name: "invoice_apply"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "invoice_record"); |
|||
|
|||
migrationBuilder.DropTable( |
|||
name: "payment_record"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "specimen_status", |
|||
table: "lis_request"); |
|||
|
|||
migrationBuilder.RenameColumn( |
|||
name: "give_up_check_template_file", |
|||
table: "give_up_check_template", |
|||
newName: "informed_consent_template_file"); |
|||
} |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue