sejongbinary / binary-backend

Binary Backend Repository
1 stars 0 forks source link

๋กœ๊ทธ์ธ - user.entity.ts #5

Open pgb0930 opened 2 months ago

pgb0930 commented 2 months ago

๐Ÿš… Issue ํ•œ ์ค„ ์š”์•ฝ

user.entity.ts

๐Ÿคท Issue ์„ธ๋ถ€ ๋‚ด์šฉ

import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class User {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ unique: true })
  username: string;

  @Column()
  password: string;
}

โœจ ๊ธฐ๋Œ€ ๊ฒฐ๊ณผ

๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท