aboutsummaryrefslogtreecommitdiff
path: root/src/db/model/User.ts
blob: 8a3fc1db1c2c2c54101777aaae37ceed204fc646 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import {
  Table,
  Column
} from 'sequelize-typescript';

@Table
class User extends Model<User> {
  @Column
  @PrimaryKey
  username: string;

  @Column
  password: string;

  @CreatedAt
  creationDate: Date;
}