Skip to content

Commit

Permalink
update notice entity
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueHorn07 committed Dec 10, 2023
1 parent 855b341 commit 650439a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/popo/notice/notice.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IsFile, MaxFileSize, MemoryStoredFile } from 'nestjs-form-data';

export class NoticeDto {
readonly title: string;
readonly memo: string | null;
readonly content: string | null;
readonly start_datetime: string | null; // YYYY-MM-DD HH:mm:ss (KST)
readonly end_datetime: string | null; // YYYY-MM-DD HH:mm:ss (KST)
readonly link: string | null;
Expand Down
6 changes: 3 additions & 3 deletions src/popo/notice/notice.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ export class Notice extends BaseEntity {
title: string;

@Column('text', { nullable: true })
memo: string;
content: string;

@Column({ nullable: true })
image_url: string;

@Column({ nullable: true })
link: string;

@Column({ nullable: true })
@Column({ nullable: false })
start_datetime: string; // YYYY-MM-DD HH:mm:ss (KST)

@Column({ nullable: true })
@Column({ nullable: false })
end_datetime: string; // YYYY-MM-DD HH:mm:ss (KST)

@Column({ default: 0})
Expand Down

0 comments on commit 650439a

Please sign in to comment.