From 83e923d15e19eb84dabb9dbeb7f02222b8dafda9 Mon Sep 17 00:00:00 2001 From: "saito.k" Date: Thu, 19 Oct 2023 17:17:48 +0900 Subject: [PATCH] =?UTF-8?q?mysql=E3=81=A7=E5=AF=BE=E5=BF=9C=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=AA=E3=81=84type=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repositories/accounts/entity/account.entity.ts | 8 ++++---- .../entity/checkout_permission.entity.ts | 4 ++-- .../repositories/licenses/entity/license.entity.ts | 12 ++++++------ .../src/repositories/tasks/entity/task.entity.ts | 4 ++-- .../repositories/workflows/entity/workflow.entity.ts | 4 ++-- .../workflows/entity/workflow_typists.entity.ts | 4 ++-- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/dictation_server/src/repositories/accounts/entity/account.entity.ts b/dictation_server/src/repositories/accounts/entity/account.entity.ts index 74a0a0a..7663f47 100644 --- a/dictation_server/src/repositories/accounts/entity/account.entity.ts +++ b/dictation_server/src/repositories/accounts/entity/account.entity.ts @@ -13,7 +13,7 @@ export class Account { @PrimaryGeneratedColumn() id: number; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) parent_account_id: number | null; @Column() @@ -34,13 +34,13 @@ export class Account { @Column({ default: false }) verified: boolean; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) primary_admin_user_id: number | null; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) secondary_admin_user_id: number | null; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) active_worktype_id: number | null; @Column({ nullable: true, type: 'datetime' }) diff --git a/dictation_server/src/repositories/checkout_permissions/entity/checkout_permission.entity.ts b/dictation_server/src/repositories/checkout_permissions/entity/checkout_permission.entity.ts index 1269c1f..2ff148e 100644 --- a/dictation_server/src/repositories/checkout_permissions/entity/checkout_permission.entity.ts +++ b/dictation_server/src/repositories/checkout_permissions/entity/checkout_permission.entity.ts @@ -18,10 +18,10 @@ export class CheckoutPermission { @Column({}) task_id: number; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) user_id: number | null; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) user_group_id: number | null; @OneToOne(() => User, (user) => user.id) diff --git a/dictation_server/src/repositories/licenses/entity/license.entity.ts b/dictation_server/src/repositories/licenses/entity/license.entity.ts index b8e2cd2..c3adf94 100644 --- a/dictation_server/src/repositories/licenses/entity/license.entity.ts +++ b/dictation_server/src/repositories/licenses/entity/license.entity.ts @@ -79,16 +79,16 @@ export class License { @Column() status: string; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) allocated_user_id: number | null; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) order_id: number | null; @Column({ nullable: true, type: 'datetime' }) deleted_at: Date | null; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) delete_order_id: number | null; @Column({ nullable: true, type: 'datetime' }) @@ -244,16 +244,16 @@ export class LicenseArchive { @Column() status: string; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) allocated_user_id: number | null; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) order_id: number | null; @Column({ nullable: true, type: 'datetime' }) deleted_at: Date | null; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) delete_order_id: number | null; @Column({ nullable: true, type: 'datetime' }) diff --git a/dictation_server/src/repositories/tasks/entity/task.entity.ts b/dictation_server/src/repositories/tasks/entity/task.entity.ts index c734e1f..27da363 100644 --- a/dictation_server/src/repositories/tasks/entity/task.entity.ts +++ b/dictation_server/src/repositories/tasks/entity/task.entity.ts @@ -26,11 +26,11 @@ export class Task { audio_file_id: number; @Column() status: string; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) typist_user_id: number | null; @Column() priority: string; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) template_file_id: number | null; @Column({ nullable: true, type: 'datetime' }) started_at: Date | null; diff --git a/dictation_server/src/repositories/workflows/entity/workflow.entity.ts b/dictation_server/src/repositories/workflows/entity/workflow.entity.ts index 6c51d96..52af3e2 100644 --- a/dictation_server/src/repositories/workflows/entity/workflow.entity.ts +++ b/dictation_server/src/repositories/workflows/entity/workflow.entity.ts @@ -24,10 +24,10 @@ export class Workflow { @Column() author_id: number; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) worktype_id: number | null; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) template_id: number | null; @Column({ nullable: true, type: 'datetime' }) diff --git a/dictation_server/src/repositories/workflows/entity/workflow_typists.entity.ts b/dictation_server/src/repositories/workflows/entity/workflow_typists.entity.ts index f92d02e..31f8cbd 100644 --- a/dictation_server/src/repositories/workflows/entity/workflow_typists.entity.ts +++ b/dictation_server/src/repositories/workflows/entity/workflow_typists.entity.ts @@ -19,10 +19,10 @@ export class WorkflowTypist { @Column() workflow_id: number; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) typist_id: number | null; - @Column({ nullable: true, type: 'unsigned big int' }) + @Column({ nullable: true, type: 'int' }) typist_group_id: number | null; @Column({ nullable: true, type: 'datetime' })