24 lines
308 B
TypeScript
24 lines
308 B
TypeScript
import { ModelCtor, Model } from 'sequelize';
|
|
|
|
export interface IRepository {
|
|
|
|
}
|
|
|
|
export class Repository implements IRepository {
|
|
model: ModelCtor<Model>;
|
|
|
|
constructor(model: ModelCtor<Model>) {
|
|
this.model = model;
|
|
}
|
|
|
|
findAll() {}
|
|
|
|
findOne() {}
|
|
|
|
create() {}
|
|
|
|
update() {}
|
|
|
|
destroy() {}
|
|
}
|