You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
294 B
20 lines
294 B
|
1 year ago
|
import { Column, Model, Table } from 'sequelize-typescript';
|
||
|
|
|
||
|
|
@Table
|
||
|
|
export class User extends Model<User> {
|
||
|
|
@Column({
|
||
|
|
primaryKey: true,
|
||
|
|
autoIncrement: true,
|
||
|
|
})
|
||
|
|
id: number;
|
||
|
|
|
||
|
|
@Column
|
||
|
|
name: string;
|
||
|
|
|
||
|
|
@Column
|
||
|
|
email: string;
|
||
|
|
|
||
|
|
@Column
|
||
|
|
password: string;
|
||
|
|
}
|