changed contacts routes to typescript

This commit is contained in:
canove
2020-09-15 19:28:06 -03:00
parent 14d90a2dd4
commit b04c0b878e
21 changed files with 536 additions and 133 deletions

View File

@@ -4,16 +4,17 @@ import {
CreatedAt,
UpdatedAt,
Model,
DataType,
PrimaryKey
} from "sequelize-typescript";
@Table
class Setting extends Model<Setting> {
@PrimaryKey
@Column
@Column(DataType.STRING)
key: string;
@Column
@Column(DataType.STRING)
value: string;
@CreatedAt