tachybase_todo/packages/collections/src/repository.ts
2021-09-23 00:16:04 +08:00

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() {}
}