changed all models to typescript

This commit is contained in:
canove
2020-09-19 08:15:47 -03:00
parent b04c0b878e
commit 99fa2cea61
22 changed files with 629 additions and 162 deletions

View File

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