blob: f1521dd122864501a75fdf246539e0b400a3c14e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { Model } from 'sequelize';
export abstract class BaseModel<A, B> extends Model<A, B> {
/**
* The date when the row was created.
*/
public get createdAt(): Date {
throw new Error('This should never be executed');
}
/**
* The date when the row was last updated.
*/
public get updatedAt(): Date {
throw new Error('This should never be executed');
}
}
|