import { Model } from 'sequelize'; const NEVER_USED = 'This should never be executed'; export abstract class BaseModel extends Model { /** * The date when the row was created. */ public get createdAt(): Date { throw new Error(NEVER_USED); } /** * The date when the row was last updated. */ public get updatedAt(): Date { throw new Error(NEVER_USED); } }