Skip to content

Commit

Permalink
♻️ refactor: orders 테이블 복합키 추가 #238
Browse files Browse the repository at this point in the history
  • Loading branch information
sieunie committed Dec 4, 2024
1 parent bd4b374 commit e518dfa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions BE/src/stock/order/stock-order.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { TradeType } from './enum/trade-type';
import { StatusType } from './enum/status-type';

@Entity('orders')
@Index(['user_id', 'stock_code'])
export class Order {
@PrimaryGeneratedColumn()
id: number;
Expand Down

0 comments on commit e518dfa

Please sign in to comment.