mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-18 03:39:29 +00:00
28 lines
360 B
TypeScript
28 lines
360 B
TypeScript
import {
|
|
Table,
|
|
Column,
|
|
CreatedAt,
|
|
UpdatedAt,
|
|
Model,
|
|
DataType,
|
|
PrimaryKey
|
|
} from "sequelize-typescript";
|
|
|
|
@Table
|
|
class Setting extends Model<Setting> {
|
|
@PrimaryKey
|
|
@Column(DataType.STRING)
|
|
key: string;
|
|
|
|
@Column(DataType.STRING)
|
|
value: string;
|
|
|
|
@CreatedAt
|
|
createdAt: Date;
|
|
|
|
@UpdatedAt
|
|
updatedAt: Date;
|
|
}
|
|
|
|
export default Setting;
|