mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-25 14:07:53 +00:00
Add region module
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export * from './region.repository';
|
||||
@@ -0,0 +1,10 @@
|
||||
import { DataSource, Repository } from 'typeorm';
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { RegionEntity } from '../entities';
|
||||
|
||||
@Injectable()
|
||||
export class RegionRepository extends Repository<RegionEntity> {
|
||||
constructor(private dataSource: DataSource) {
|
||||
super(RegionEntity, dataSource.createEntityManager());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user