aboutsummaryrefslogtreecommitdiff
path: root/lib/models/BaseModel.ts
blob: 8fba5e5e1eb1b8b62d5bb0994ae8bdc54a67f039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { Model } from 'sequelize';

export abstract class BaseModel<A, B> extends Model<A, B> {
	/**
	 * The date when the row was created.
	 */
	public declare readonly createdAt: Date;

	/**
	 * The date when the row was last updated.
	 */
	public declare readonly updatedAt: Date;
}