feat: add user remove route

This commit is contained in:
canove
2020-09-14 19:24:38 -03:00
parent 7f33e33078
commit b3cf16bbd3
7 changed files with 155 additions and 115 deletions

View File

@@ -6,12 +6,17 @@ import {
Model,
DataType,
BeforeCreate,
BeforeUpdate
BeforeUpdate,
PrimaryKey
} from "sequelize-typescript";
import { hash, compare } from "bcryptjs";
@Table
class User extends Model<User> {
@PrimaryKey
@Column
id: number;
@Column
name: string;