mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 02:36:19 +00:00
Add space product
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import { DataSource, Repository } from 'typeorm';
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { SubspaceEntity } from '../entities/subspace/subspace.entity';
|
||||
import { SubspaceProductAllocationEntity } from '../entities/subspace/subspace-product-allocation.entity';
|
||||
|
||||
@Injectable()
|
||||
export class SubspaceRepository extends Repository<SubspaceEntity> {
|
||||
@ -8,3 +9,9 @@ export class SubspaceRepository extends Repository<SubspaceEntity> {
|
||||
super(SubspaceEntity, dataSource.createEntityManager());
|
||||
}
|
||||
}
|
||||
@Injectable()
|
||||
export class SubspaceProductAllocationRepository extends Repository<SubspaceProductAllocationEntity> {
|
||||
constructor(private dataSource: DataSource) {
|
||||
super(SubspaceProductAllocationEntity, dataSource.createEntityManager());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user