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

export abstract class BaseModel<A extends {}, B extends {}> 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;
}