mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-24 23:37:54 +00:00
removed allowed quantity and renamed tags
This commit is contained in:
@@ -20,5 +20,5 @@ export class SpaceProductAllocationDto {
|
||||
@IsArray()
|
||||
@ValidateNested({ each: true })
|
||||
@Type(() => NewTagDto)
|
||||
allowedTags: NewTagDto[];
|
||||
tags: NewTagDto[];
|
||||
}
|
||||
|
||||
@@ -20,5 +20,5 @@ export class SubspaceProductAllocationDto {
|
||||
@IsArray()
|
||||
@ValidateNested({ each: true })
|
||||
@Type(() => NewTagDto)
|
||||
allowedTags: NewTagDto[];
|
||||
tags: NewTagDto[];
|
||||
}
|
||||
|
||||
@@ -30,12 +30,9 @@ export class SpaceProductAllocationEntity extends AbstractEntity<SpaceProductAll
|
||||
@ManyToOne(() => ProductEntity, { nullable: false, onDelete: 'CASCADE' })
|
||||
public product: ProductEntity;
|
||||
|
||||
@Column({ type: 'int', default: 1 })
|
||||
public allowedQuantity: number;
|
||||
|
||||
@ManyToMany(() => NewTagEntity)
|
||||
@JoinTable({ name: 'space_product_tags' })
|
||||
public allowedTags: NewTagEntity[];
|
||||
public tags: NewTagEntity[];
|
||||
|
||||
constructor(partial: Partial<SpaceProductAllocationEntity>) {
|
||||
super();
|
||||
|
||||
+1
-4
@@ -38,12 +38,9 @@ export class SubspaceProductAllocationEntity extends AbstractEntity<SubspaceProd
|
||||
@ManyToOne(() => ProductEntity, { nullable: false, onDelete: 'CASCADE' })
|
||||
public product: ProductEntity;
|
||||
|
||||
@Column({ type: 'int', default: 1 })
|
||||
public allowedQuantity: number;
|
||||
|
||||
@ManyToMany(() => NewTagEntity)
|
||||
@JoinTable({ name: 'subspace_product_tags' })
|
||||
public allowedTags: NewTagEntity[];
|
||||
public tags: NewTagEntity[];
|
||||
|
||||
constructor(partial: Partial<SubspaceProductAllocationEntity>) {
|
||||
super();
|
||||
|
||||
Reference in New Issue
Block a user