fix nullable column types for postgres migration

This commit is contained in:
2026-05-07 19:18:32 +03:30
parent 729cc9f4b9
commit 867a1a28e2
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -25,13 +25,13 @@ export class BusinessEntity {
@Column({ unique: true, length: 120 })
slug!: string;
@Column({ nullable: true, length: 500 })
@Column({ type: 'varchar', nullable: true, length: 500 })
description!: string | null;
@Column({ nullable: true, length: 20 })
@Column({ type: 'varchar', nullable: true, length: 20 })
contactPhone!: string | null;
@Column({ nullable: true, length: 500 })
@Column({ type: 'varchar', nullable: true, length: 500 })
address!: string | null;
@Column({ type: 'double precision', nullable: true })
+1 -1
View File
@@ -22,7 +22,7 @@ export class ServiceTemplateEntity {
@Column({ unique: true, length: 120 })
slug!: string;
@Column({ nullable: true, length: 400 })
@Column({ type: 'varchar', nullable: true, length: 400 })
description!: string | null;
@Column({ type: 'int', default: 30 })
+1 -1
View File
@@ -23,7 +23,7 @@ export class UserEntity {
@Column({ unique: true, length: 20 })
mobile!: string;
@Column({ nullable: true, length: 150 })
@Column({ type: 'varchar', nullable: true, length: 150 })
fullName!: string | null;
@Column({ type: 'enum', enum: UserRole, default: UserRole.CUSTOMER })