proflores-db-model 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,32 +43,32 @@ __decorate([
43
43
  __metadata("design:type", String)
44
44
  ], PlantTechnicalSheet.prototype, "origin", void 0);
45
45
  __decorate([
46
- (0, typeorm_1.OneToOne)(() => PlantGrowthType_1.PlantGrowthType, { cascade: true }),
46
+ (0, typeorm_1.OneToOne)(() => PlantGrowthType_1.PlantGrowthType, { onDelete: "CASCADE" }),
47
47
  (0, typeorm_1.JoinColumn)({ name: "plantGrowthTypeId" }),
48
48
  __metadata("design:type", PlantGrowthType_1.PlantGrowthType)
49
49
  ], PlantTechnicalSheet.prototype, "plantType", void 0);
50
50
  __decorate([
51
- (0, typeorm_1.OneToOne)(() => LightInfo_1.LightInfo, { cascade: true }),
51
+ (0, typeorm_1.OneToOne)(() => LightInfo_1.LightInfo, { onDelete: "CASCADE" }),
52
52
  (0, typeorm_1.JoinColumn)({ name: "lightInfoId" }),
53
53
  __metadata("design:type", LightInfo_1.LightInfo)
54
54
  ], PlantTechnicalSheet.prototype, "light", void 0);
55
55
  __decorate([
56
- (0, typeorm_1.OneToOne)(() => HumidityInfo_1.HumidityInfo, { cascade: true }),
56
+ (0, typeorm_1.OneToOne)(() => HumidityInfo_1.HumidityInfo, { onDelete: "CASCADE" }),
57
57
  (0, typeorm_1.JoinColumn)({ name: "humidityInfoId" }),
58
58
  __metadata("design:type", HumidityInfo_1.HumidityInfo)
59
59
  ], PlantTechnicalSheet.prototype, "humidity", void 0);
60
60
  __decorate([
61
- (0, typeorm_1.OneToOne)(() => ClimateIdeal_1.ClimateIdeal, { cascade: true }),
61
+ (0, typeorm_1.OneToOne)(() => ClimateIdeal_1.ClimateIdeal, { onDelete: "CASCADE" }),
62
62
  (0, typeorm_1.JoinColumn)({ name: "climateIdealId" }),
63
63
  __metadata("design:type", ClimateIdeal_1.ClimateIdeal)
64
64
  ], PlantTechnicalSheet.prototype, "climate", void 0);
65
65
  __decorate([
66
- (0, typeorm_1.OneToOne)(() => SubstrateInfo_1.SubstrateInfo, { cascade: true }),
66
+ (0, typeorm_1.OneToOne)(() => SubstrateInfo_1.SubstrateInfo, { onDelete: "CASCADE" }),
67
67
  (0, typeorm_1.JoinColumn)({ name: "substrateInfoId" }),
68
68
  __metadata("design:type", SubstrateInfo_1.SubstrateInfo)
69
69
  ], PlantTechnicalSheet.prototype, "substrate", void 0);
70
70
  __decorate([
71
- (0, typeorm_1.OneToOne)(() => FertilizationInfo_1.FertilizationInfo, { cascade: true }),
71
+ (0, typeorm_1.OneToOne)(() => FertilizationInfo_1.FertilizationInfo, { onDelete: "CASCADE" }),
72
72
  (0, typeorm_1.JoinColumn)({ name: "fertilizationInfoId" }),
73
73
  __metadata("design:type", FertilizationInfo_1.FertilizationInfo)
74
74
  ], PlantTechnicalSheet.prototype, "fertilization", void 0);
@@ -79,22 +79,22 @@ __decorate([
79
79
  __metadata("design:type", Array)
80
80
  ], PlantTechnicalSheet.prototype, "pests", void 0);
81
81
  __decorate([
82
- (0, typeorm_1.OneToOne)(() => CareInstructions_1.CareInstructions, { cascade: true }),
82
+ (0, typeorm_1.OneToOne)(() => CareInstructions_1.CareInstructions, { onDelete: "CASCADE" }),
83
83
  (0, typeorm_1.JoinColumn)({ name: "careInstructionsId" }),
84
84
  __metadata("design:type", CareInstructions_1.CareInstructions)
85
85
  ], PlantTechnicalSheet.prototype, "care", void 0);
86
86
  __decorate([
87
- (0, typeorm_1.OneToOne)(() => PropagationMethodInfo_1.PropagationMethodInfo, { cascade: true }),
87
+ (0, typeorm_1.OneToOne)(() => PropagationMethodInfo_1.PropagationMethodInfo, { onDelete: "CASCADE" }),
88
88
  (0, typeorm_1.JoinColumn)({ name: "propagationMethodId" }),
89
89
  __metadata("design:type", PropagationMethodInfo_1.PropagationMethodInfo)
90
90
  ], PlantTechnicalSheet.prototype, "propagation", void 0);
91
91
  __decorate([
92
- (0, typeorm_1.OneToOne)(() => PlantSize_1.PlantSize, { cascade: true }),
92
+ (0, typeorm_1.OneToOne)(() => PlantSize_1.PlantSize, { onDelete: "CASCADE" }),
93
93
  (0, typeorm_1.JoinColumn)({ name: "plantSizeId" }),
94
94
  __metadata("design:type", PlantSize_1.PlantSize)
95
95
  ], PlantTechnicalSheet.prototype, "size", void 0);
96
96
  __decorate([
97
- (0, typeorm_1.OneToOne)(() => GrowthClassInfo_1.GrowthClassInfo, { cascade: true }),
97
+ (0, typeorm_1.OneToOne)(() => GrowthClassInfo_1.GrowthClassInfo, { onDelete: "CASCADE" }),
98
98
  (0, typeorm_1.JoinColumn)({ name: "growthClassInfoId" }),
99
99
  __metadata("design:type", GrowthClassInfo_1.GrowthClassInfo)
100
100
  ], PlantTechnicalSheet.prototype, "growthClass", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "proflores-db-model",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Data model for managing expenses and transactions for Proflores nursery business",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,27 +34,27 @@ import {
34
34
  @Column("varchar", { length: 255 })
35
35
  origin!: string;
36
36
 
37
- @OneToOne(() => PlantGrowthType, { cascade: true })
37
+ @OneToOne(() => PlantGrowthType, { onDelete: "CASCADE" })
38
38
  @JoinColumn({ name: "plantGrowthTypeId" })
39
39
  plantType!: PlantGrowthType;
40
40
 
41
- @OneToOne(() => LightInfo, { cascade: true })
41
+ @OneToOne(() => LightInfo, { onDelete: "CASCADE" })
42
42
  @JoinColumn({ name: "lightInfoId" })
43
43
  light!: LightInfo;
44
44
 
45
- @OneToOne(() => HumidityInfo, { cascade: true })
45
+ @OneToOne(() => HumidityInfo, { onDelete: "CASCADE" })
46
46
  @JoinColumn({ name: "humidityInfoId" })
47
47
  humidity!: HumidityInfo;
48
48
 
49
- @OneToOne(() => ClimateIdeal, { cascade: true })
49
+ @OneToOne(() => ClimateIdeal, { onDelete: "CASCADE" })
50
50
  @JoinColumn({ name: "climateIdealId" })
51
51
  climate!: ClimateIdeal;
52
52
 
53
- @OneToOne(() => SubstrateInfo, { cascade: true })
53
+ @OneToOne(() => SubstrateInfo, { onDelete: "CASCADE" })
54
54
  @JoinColumn({ name: "substrateInfoId" })
55
55
  substrate!: SubstrateInfo;
56
56
 
57
- @OneToOne(() => FertilizationInfo, { cascade: true })
57
+ @OneToOne(() => FertilizationInfo, { onDelete: "CASCADE" })
58
58
  @JoinColumn({ name: "fertilizationInfoId" })
59
59
  fertilization!: FertilizationInfo;
60
60
 
@@ -63,19 +63,19 @@ import {
63
63
  })
64
64
  pests!: PestInfo[];
65
65
 
66
- @OneToOne(() => CareInstructions, { cascade: true })
66
+ @OneToOne(() => CareInstructions, { onDelete: "CASCADE" })
67
67
  @JoinColumn({ name: "careInstructionsId" })
68
68
  care!: CareInstructions;
69
69
 
70
- @OneToOne(() => PropagationMethodInfo, { cascade: true })
70
+ @OneToOne(() => PropagationMethodInfo, { onDelete: "CASCADE" })
71
71
  @JoinColumn({ name: "propagationMethodId" })
72
72
  propagation!: PropagationMethodInfo;
73
73
 
74
- @OneToOne(() => PlantSize, { cascade: true })
74
+ @OneToOne(() => PlantSize, { onDelete: "CASCADE" })
75
75
  @JoinColumn({ name: "plantSizeId" })
76
76
  size!: PlantSize;
77
77
 
78
- @OneToOne(() => GrowthClassInfo, { cascade: true })
78
+ @OneToOne(() => GrowthClassInfo, { onDelete: "CASCADE" })
79
79
  @JoinColumn({ name: "growthClassInfoId" })
80
80
  growthClass!: GrowthClassInfo;
81
81