diff options
Diffstat (limited to 'lib/models/BaseModel.ts')
-rw-r--r-- | lib/models/BaseModel.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/models/BaseModel.ts b/lib/models/BaseModel.ts new file mode 100644 index 0000000..8fba5e5 --- /dev/null +++ b/lib/models/BaseModel.ts @@ -0,0 +1,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; +} |