Skip to content

Commit

Permalink
fix: unique 조건을 걸면 자동으로 index가 생성되므로 index 데코레이터 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
choyoungwoo9 committed Jul 1, 2024
1 parent 897ae07 commit f0c4585
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/src/member/entity/member.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
PrimaryGeneratedColumn,
CreateDateColumn,
UpdateDateColumn,
Index,
OneToMany,
} from 'typeorm';

Expand All @@ -14,7 +13,6 @@ export class Member {
@PrimaryGeneratedColumn('increment', { type: 'int' })
id: number;

@Index()
@Column({ type: 'int', unique: true, nullable: false })
github_id: number;

Expand All @@ -24,7 +22,6 @@ export class Member {
@Column({ type: 'varchar', length: 256, nullable: false })
github_image_url: string;

@Index()
@Column({ type: 'varchar', length: 39, unique: true, nullable: false })
username: string;

Expand Down

0 comments on commit f0c4585

Please sign in to comment.