Skip to content

Commit 816912d

Browse files
committed
๐Ÿ› ๏ธ refactor: (BE) - base entity ์†์„ฑ๊ฐ’ ์ˆ˜์ •
1 parent b09a0cc commit 816912d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

โ€Žbackend/rest/src/common/typeorm-base.entity.tsโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { IsBoolean, IsDate } from 'class-validator';
22
import { Column } from 'typeorm';
33

44
export class TypeormBaseEntity {
5-
@Column({ name: 'created_at', type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
5+
@Column({ name: 'created_at', type: 'timestamp', default: 'CURRENT_TIMESTAMP' })
66
@IsDate()
77
createdAt: Date;
88

9-
@Column({ name: 'updated_at', type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' })
9+
@Column({ name: 'updated_at', type: 'timestamp', default: 'CURRENT_TIMESTAMP' })
1010
@IsDate()
1111
updatedAt: Date;
1212

0 commit comments

Comments
ย (0)