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.
22 lines
329 B
22 lines
329 B
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;
|
|
|
|
@Column
|
|
googleId?: string;
|
|
}
|
|
|