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

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;
}