proflores-db-model 0.2.2 → 0.2.3
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.
|
@@ -52,6 +52,7 @@ __decorate([
|
|
|
52
52
|
__decorate([
|
|
53
53
|
(0, typeorm_1.ManyToOne)(() => PlantGrowthType_1.PlantGrowthType, (growthType) => growthType.images, {
|
|
54
54
|
nullable: true,
|
|
55
|
+
onDelete: "CASCADE",
|
|
55
56
|
}),
|
|
56
57
|
(0, typeorm_1.JoinColumn)({ name: "plantGrowthTypeId" }),
|
|
57
58
|
__metadata("design:type", PlantGrowthType_1.PlantGrowthType)
|
|
@@ -59,6 +60,7 @@ __decorate([
|
|
|
59
60
|
__decorate([
|
|
60
61
|
(0, typeorm_1.ManyToOne)(() => LightInfo_1.LightInfo, (lightInfo) => lightInfo.images, {
|
|
61
62
|
nullable: true,
|
|
63
|
+
onDelete: "CASCADE",
|
|
62
64
|
}),
|
|
63
65
|
(0, typeorm_1.JoinColumn)({ name: "lightInfoId" }),
|
|
64
66
|
__metadata("design:type", LightInfo_1.LightInfo)
|
|
@@ -66,6 +68,7 @@ __decorate([
|
|
|
66
68
|
__decorate([
|
|
67
69
|
(0, typeorm_1.ManyToOne)(() => HumidityInfo_1.HumidityInfo, (humidityInfo) => humidityInfo.images, {
|
|
68
70
|
nullable: true,
|
|
71
|
+
onDelete: "CASCADE",
|
|
69
72
|
}),
|
|
70
73
|
(0, typeorm_1.JoinColumn)({ name: "humidityInfoId" }),
|
|
71
74
|
__metadata("design:type", HumidityInfo_1.HumidityInfo)
|
|
@@ -73,6 +76,7 @@ __decorate([
|
|
|
73
76
|
__decorate([
|
|
74
77
|
(0, typeorm_1.ManyToOne)(() => ClimateIdeal_1.ClimateIdeal, (climate) => climate.images, {
|
|
75
78
|
nullable: true,
|
|
79
|
+
onDelete: "CASCADE",
|
|
76
80
|
}),
|
|
77
81
|
(0, typeorm_1.JoinColumn)({ name: "climateIdealId" }),
|
|
78
82
|
__metadata("design:type", ClimateIdeal_1.ClimateIdeal)
|
|
@@ -80,6 +84,7 @@ __decorate([
|
|
|
80
84
|
__decorate([
|
|
81
85
|
(0, typeorm_1.ManyToOne)(() => SubstrateInfo_1.SubstrateInfo, (substrate) => substrate.images, {
|
|
82
86
|
nullable: true,
|
|
87
|
+
onDelete: "CASCADE",
|
|
83
88
|
}),
|
|
84
89
|
(0, typeorm_1.JoinColumn)({ name: "substrateInfoId" }),
|
|
85
90
|
__metadata("design:type", SubstrateInfo_1.SubstrateInfo)
|
|
@@ -87,6 +92,7 @@ __decorate([
|
|
|
87
92
|
__decorate([
|
|
88
93
|
(0, typeorm_1.ManyToOne)(() => FertilizationInfo_1.FertilizationInfo, (f) => f.images, {
|
|
89
94
|
nullable: true,
|
|
95
|
+
onDelete: "CASCADE",
|
|
90
96
|
}),
|
|
91
97
|
(0, typeorm_1.JoinColumn)({ name: "fertilizationInfoId" }),
|
|
92
98
|
__metadata("design:type", FertilizationInfo_1.FertilizationInfo)
|
|
@@ -94,6 +100,7 @@ __decorate([
|
|
|
94
100
|
__decorate([
|
|
95
101
|
(0, typeorm_1.ManyToOne)(() => PestInfo_1.PestInfo, (pest) => pest.images, {
|
|
96
102
|
nullable: true,
|
|
103
|
+
onDelete: "CASCADE",
|
|
97
104
|
}),
|
|
98
105
|
(0, typeorm_1.JoinColumn)({ name: "pestId" }),
|
|
99
106
|
__metadata("design:type", PestInfo_1.PestInfo)
|
|
@@ -101,6 +108,7 @@ __decorate([
|
|
|
101
108
|
__decorate([
|
|
102
109
|
(0, typeorm_1.ManyToOne)(() => PropagationMethodInfo_1.PropagationMethodInfo, (info) => info.images, {
|
|
103
110
|
nullable: true,
|
|
111
|
+
onDelete: "CASCADE",
|
|
104
112
|
}),
|
|
105
113
|
(0, typeorm_1.JoinColumn)({ name: "propagationMethodId" }),
|
|
106
114
|
__metadata("design:type", PropagationMethodInfo_1.PropagationMethodInfo)
|
|
@@ -108,6 +116,7 @@ __decorate([
|
|
|
108
116
|
__decorate([
|
|
109
117
|
(0, typeorm_1.ManyToOne)(() => PlantSize_1.PlantSize, (size) => size.images, {
|
|
110
118
|
nullable: true,
|
|
119
|
+
onDelete: "CASCADE",
|
|
111
120
|
}),
|
|
112
121
|
(0, typeorm_1.JoinColumn)({ name: "plantSizeId" }),
|
|
113
122
|
__metadata("design:type", PlantSize_1.PlantSize)
|
|
@@ -115,6 +124,7 @@ __decorate([
|
|
|
115
124
|
__decorate([
|
|
116
125
|
(0, typeorm_1.ManyToOne)(() => GrowthClassInfo_1.GrowthClassInfo, (growthClass) => growthClass.images, {
|
|
117
126
|
nullable: true,
|
|
127
|
+
onDelete: "CASCADE",
|
|
118
128
|
}),
|
|
119
129
|
(0, typeorm_1.JoinColumn)({ name: "growthClassInfoId" }),
|
|
120
130
|
__metadata("design:type", GrowthClassInfo_1.GrowthClassInfo)
|
package/package.json
CHANGED
|
@@ -41,60 +41,70 @@ export class ImageInfo implements ObjectLiteral {
|
|
|
41
41
|
|
|
42
42
|
@ManyToOne(() => PlantGrowthType, (growthType) => growthType.images, {
|
|
43
43
|
nullable: true,
|
|
44
|
+
onDelete: "CASCADE",
|
|
44
45
|
})
|
|
45
46
|
@JoinColumn({ name: "plantGrowthTypeId" })
|
|
46
47
|
plantGrowthType?: PlantGrowthType;
|
|
47
48
|
|
|
48
49
|
@ManyToOne(() => LightInfo, (lightInfo) => lightInfo.images, {
|
|
49
50
|
nullable: true,
|
|
51
|
+
onDelete: "CASCADE",
|
|
50
52
|
})
|
|
51
53
|
@JoinColumn({ name: "lightInfoId" })
|
|
52
54
|
lightInfo?: LightInfo;
|
|
53
55
|
|
|
54
56
|
@ManyToOne(() => HumidityInfo, (humidityInfo) => humidityInfo.images, {
|
|
55
57
|
nullable: true,
|
|
58
|
+
onDelete: "CASCADE",
|
|
56
59
|
})
|
|
57
60
|
@JoinColumn({ name: "humidityInfoId" })
|
|
58
61
|
humidityInfo?: HumidityInfo;
|
|
59
62
|
|
|
60
63
|
@ManyToOne(() => ClimateIdeal, (climate) => climate.images, {
|
|
61
64
|
nullable: true,
|
|
65
|
+
onDelete: "CASCADE",
|
|
62
66
|
})
|
|
63
67
|
@JoinColumn({ name: "climateIdealId" })
|
|
64
68
|
climateIdeal?: ClimateIdeal;
|
|
65
69
|
|
|
66
70
|
@ManyToOne(() => SubstrateInfo, (substrate) => substrate.images, {
|
|
67
71
|
nullable: true,
|
|
72
|
+
onDelete: "CASCADE",
|
|
68
73
|
})
|
|
69
74
|
@JoinColumn({ name: "substrateInfoId" })
|
|
70
75
|
substrateInfo?: SubstrateInfo;
|
|
71
76
|
|
|
72
77
|
@ManyToOne(() => FertilizationInfo, (f) => f.images, {
|
|
73
78
|
nullable: true,
|
|
79
|
+
onDelete: "CASCADE",
|
|
74
80
|
})
|
|
75
81
|
@JoinColumn({ name: "fertilizationInfoId" })
|
|
76
82
|
fertilizationInfo?: FertilizationInfo;
|
|
77
83
|
|
|
78
84
|
@ManyToOne(() => PestInfo, (pest) => pest.images, {
|
|
79
85
|
nullable: true,
|
|
86
|
+
onDelete: "CASCADE",
|
|
80
87
|
})
|
|
81
88
|
@JoinColumn({ name: "pestId" })
|
|
82
89
|
pest?: PestInfo;
|
|
83
90
|
|
|
84
91
|
@ManyToOne(() => PropagationMethodInfo, (info) => info.images, {
|
|
85
92
|
nullable: true,
|
|
93
|
+
onDelete: "CASCADE",
|
|
86
94
|
})
|
|
87
95
|
@JoinColumn({ name: "propagationMethodId" })
|
|
88
96
|
propagationMethod?: PropagationMethodInfo;
|
|
89
97
|
|
|
90
98
|
@ManyToOne(() => PlantSize, (size) => size.images, {
|
|
91
99
|
nullable: true,
|
|
100
|
+
onDelete: "CASCADE",
|
|
92
101
|
})
|
|
93
102
|
@JoinColumn({ name: "plantSizeId" })
|
|
94
103
|
plantSize?: PlantSize;
|
|
95
104
|
|
|
96
105
|
@ManyToOne(() => GrowthClassInfo, (growthClass) => growthClass.images, {
|
|
97
106
|
nullable: true,
|
|
107
|
+
onDelete: "CASCADE",
|
|
98
108
|
})
|
|
99
109
|
@JoinColumn({ name: "growthClassInfoId" })
|
|
100
110
|
growthClassInfo?: GrowthClassInfo;
|