16 lines
451 B
TypeScript
16 lines
451 B
TypeScript
import { BaseRepository } from "../../../common/base/repository";
|
|
import { IContract } from "../models/Abstraction/IContract";
|
|
import { ContractModel } from "../models/contract.model";
|
|
|
|
class ContractRepository extends BaseRepository<IContract> {
|
|
constructor() {
|
|
super(ContractModel);
|
|
}
|
|
}
|
|
|
|
function createContractRepository(): ContractRepository {
|
|
return new ContractRepository();
|
|
}
|
|
|
|
export { ContractRepository, createContractRepository };
|