proflores-db-model 0.1.34 → 0.2.1
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.
- package/dist/entities/Bank/BankAccount.js +2 -2
- package/dist/entities/Bank/TransactionBank.js +2 -2
- package/dist/entities/BranchImage.js +2 -2
- package/dist/entities/Branches.js +2 -2
- package/dist/entities/CategoryForCosting.js +2 -2
- package/dist/entities/CategoryForPlantType.js +2 -2
- package/dist/entities/ContainerType.js +2 -2
- package/dist/entities/ExpenseDetail.js +2 -2
- package/dist/entities/ExpenseTransaction.js +2 -2
- package/dist/entities/ExpenseType.js +2 -2
- package/dist/entities/Inventory.js +2 -2
- package/dist/entities/InventoryImage.js +2 -2
- package/dist/entities/InventoryItem.js +2 -2
- package/dist/entities/InventoryMovement.js +2 -2
- package/dist/entities/ProductImage.js +2 -2
- package/dist/entities/Products.js +2 -2
- package/dist/entities/ProjectOrder.js +2 -2
- package/dist/entities/SupplierImage.js +2 -2
- package/dist/entities/Suppliers.js +2 -2
- package/dist/entities/UnitOfMesure.js +2 -2
- package/dist/entities/User.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/models/technical-sheet/CareInstructions.d.ts +13 -0
- package/dist/models/technical-sheet/CareInstructions.js +60 -0
- package/dist/models/technical-sheet/ClimateIdeal.d.ts +11 -0
- package/dist/models/technical-sheet/ClimateIdeal.js +46 -0
- package/dist/models/technical-sheet/FertilizationInfo.d.ts +17 -0
- package/dist/models/technical-sheet/FertilizationInfo.js +54 -0
- package/dist/models/technical-sheet/GrowthClassInfo.d.ts +12 -0
- package/dist/models/technical-sheet/GrowthClassInfo.js +44 -0
- package/dist/models/technical-sheet/HumidityInfo.d.ts +10 -0
- package/dist/models/technical-sheet/HumidityInfo.js +44 -0
- package/dist/models/technical-sheet/ImageInfo.d.ts +29 -0
- package/dist/models/technical-sheet/ImageInfo.js +124 -0
- package/dist/models/technical-sheet/LightInfo.d.ts +10 -0
- package/dist/models/technical-sheet/LightInfo.js +44 -0
- package/dist/models/technical-sheet/PestInfo.d.ts +18 -0
- package/dist/models/technical-sheet/PestInfo.js +76 -0
- package/dist/models/technical-sheet/PlantGrowthType.d.ts +13 -0
- package/dist/models/technical-sheet/PlantGrowthType.js +48 -0
- package/dist/models/technical-sheet/PlantSize.d.ts +12 -0
- package/dist/models/technical-sheet/PlantSize.js +53 -0
- package/dist/models/technical-sheet/PlantTechnicalSheet.d.ts +33 -0
- package/dist/models/technical-sheet/PlantTechnicalSheet.js +117 -0
- package/dist/models/technical-sheet/PropagationMethodInfo.d.ts +10 -0
- package/dist/models/technical-sheet/PropagationMethodInfo.js +47 -0
- package/dist/models/technical-sheet/SubstrateInfo.d.ts +11 -0
- package/dist/models/technical-sheet/SubstrateInfo.js +49 -0
- package/dist/models/technical-sheet/catalogs/climate-ideal.d.ts +11 -0
- package/dist/models/technical-sheet/catalogs/climate-ideal.js +14 -0
- package/dist/models/technical-sheet/catalogs/fertilization-info.d.ts +34 -0
- package/dist/models/technical-sheet/catalogs/fertilization-info.js +35 -0
- package/dist/models/technical-sheet/catalogs/growth-class.d.ts +10 -0
- package/dist/models/technical-sheet/catalogs/growth-class.js +14 -0
- package/dist/models/technical-sheet/catalogs/growth-type.d.ts +32 -0
- package/dist/models/technical-sheet/catalogs/growth-type.js +35 -0
- package/dist/models/technical-sheet/catalogs/humidity-info.d.ts +9 -0
- package/dist/models/technical-sheet/catalogs/humidity-info.js +12 -0
- package/dist/models/technical-sheet/catalogs/light-info.d.ts +9 -0
- package/dist/models/technical-sheet/catalogs/light-info.js +13 -0
- package/dist/models/technical-sheet/catalogs/pest-info.d.ts +32 -0
- package/dist/models/technical-sheet/catalogs/pest-info.js +33 -0
- package/dist/models/technical-sheet/catalogs/plant-size.d.ts +11 -0
- package/dist/models/technical-sheet/catalogs/plant-size.js +15 -0
- package/dist/models/technical-sheet/catalogs/propagation-method.d.ts +14 -0
- package/dist/models/technical-sheet/catalogs/propagation-method.js +18 -0
- package/dist/models/technical-sheet/catalogs/substrate-info.d.ts +17 -0
- package/dist/models/technical-sheet/catalogs/substrate-info.js +21 -0
- package/dist/models/technical-sheet/index.d.ts +13 -0
- package/dist/models/technical-sheet/index.js +29 -0
- package/dist/models/technical-sheet/utils/enumColumn.d.ts +6 -0
- package/dist/models/technical-sheet/utils/enumColumn.js +12 -0
- package/dist/models/technical-sheet/utils/makeCatalog.d.ts +8 -0
- package/dist/models/technical-sheet/utils/makeCatalog.js +19 -0
- package/dist/types/MovementType.js +1 -1
- package/package.json +5 -5
- package/src/entities/Inventory.ts +1 -0
- package/src/index.ts +1 -0
- package/src/models/technical-sheet/CareInstructions.ts +45 -0
- package/src/models/technical-sheet/ClimateIdeal.ts +32 -0
- package/src/models/technical-sheet/FertilizationInfo.ts +50 -0
- package/src/models/technical-sheet/GrowthClassInfo.ts +35 -0
- package/src/models/technical-sheet/HumidityInfo.ts +31 -0
- package/src/models/technical-sheet/ImageInfo.ts +102 -0
- package/src/models/technical-sheet/LightInfo.ts +31 -0
- package/src/models/technical-sheet/PestInfo.ts +65 -0
- package/src/models/technical-sheet/PlantGrowthType.ts +38 -0
- package/src/models/technical-sheet/PlantSize.ts +41 -0
- package/src/models/technical-sheet/PlantTechnicalSheet.ts +93 -0
- package/src/models/technical-sheet/PropagationMethodInfo.ts +33 -0
- package/src/models/technical-sheet/SubstrateInfo.ts +36 -0
- package/src/models/technical-sheet/catalogs/climate-ideal.ts +16 -0
- package/src/models/technical-sheet/catalogs/fertilization-info.ts +41 -0
- package/src/models/technical-sheet/catalogs/growth-class.ts +14 -0
- package/src/models/technical-sheet/catalogs/growth-type.ts +37 -0
- package/src/models/technical-sheet/catalogs/humidity-info.ts +12 -0
- package/src/models/technical-sheet/catalogs/light-info.ts +13 -0
- package/src/models/technical-sheet/catalogs/pest-info.ts +36 -0
- package/src/models/technical-sheet/catalogs/plant-size.ts +15 -0
- package/src/models/technical-sheet/catalogs/propagation-method.ts +18 -0
- package/src/models/technical-sheet/catalogs/substrate-info.ts +21 -0
- package/src/models/technical-sheet/index.ts +14 -0
- package/src/models/technical-sheet/utils/enumColumn.ts +17 -0
- package/src/models/technical-sheet/utils/makeCatalog.ts +17 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ObjectLiteral } from 'typeorm';
|
|
2
|
+
import { HumidityRequirement } from './catalogs/humidity-info';
|
|
3
|
+
import { ImageInfo } from './ImageInfo';
|
|
4
|
+
export declare class HumidityInfo implements ObjectLiteral {
|
|
5
|
+
idHumidityInfo: number;
|
|
6
|
+
type: HumidityRequirement;
|
|
7
|
+
description?: string;
|
|
8
|
+
images?: ImageInfo[];
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.HumidityInfo = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const humidity_info_1 = require("./catalogs/humidity-info");
|
|
15
|
+
const ImageInfo_1 = require("./ImageInfo");
|
|
16
|
+
const enumColumn_1 = require("./utils/enumColumn");
|
|
17
|
+
let HumidityInfo = class HumidityInfo {
|
|
18
|
+
};
|
|
19
|
+
exports.HumidityInfo = HumidityInfo;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('increment'),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], HumidityInfo.prototype, "idHumidityInfo", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, enumColumn_1.EnumColumn)(Object.keys(humidity_info_1.HUMIDITY)),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], HumidityInfo.prototype, "type", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)('text', { nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], HumidityInfo.prototype, "description", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.OneToMany)(() => ImageInfo_1.ImageInfo, (image) => image.humidityInfo, {
|
|
34
|
+
cascade: true,
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], HumidityInfo.prototype, "images", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], HumidityInfo.prototype, "isActive", void 0);
|
|
42
|
+
exports.HumidityInfo = HumidityInfo = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)('humidity_info')
|
|
44
|
+
], HumidityInfo);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ObjectLiteral } from "typeorm";
|
|
2
|
+
import { PlantTechnicalSheet } from "./PlantTechnicalSheet";
|
|
3
|
+
import { PlantGrowthType } from "./PlantGrowthType";
|
|
4
|
+
import { LightInfo } from "./LightInfo";
|
|
5
|
+
import { HumidityInfo } from "./HumidityInfo";
|
|
6
|
+
import { ClimateIdeal } from "./ClimateIdeal";
|
|
7
|
+
import { SubstrateInfo } from "./SubstrateInfo";
|
|
8
|
+
import { FertilizationInfo } from "./FertilizationInfo";
|
|
9
|
+
import { PestInfo } from "./PestInfo";
|
|
10
|
+
import { PropagationMethodInfo } from "./PropagationMethodInfo";
|
|
11
|
+
import { PlantSize } from "./PlantSize";
|
|
12
|
+
import { GrowthClassInfo } from "./GrowthClassInfo";
|
|
13
|
+
export declare class ImageInfo implements ObjectLiteral {
|
|
14
|
+
idImage: number;
|
|
15
|
+
url: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
isActive: boolean;
|
|
18
|
+
plantTechnicalSheet?: PlantTechnicalSheet;
|
|
19
|
+
plantGrowthType?: PlantGrowthType;
|
|
20
|
+
lightInfo?: LightInfo;
|
|
21
|
+
humidityInfo?: HumidityInfo;
|
|
22
|
+
climateIdeal?: ClimateIdeal;
|
|
23
|
+
substrateInfo?: SubstrateInfo;
|
|
24
|
+
fertilizationInfo?: FertilizationInfo;
|
|
25
|
+
pest?: PestInfo;
|
|
26
|
+
propagationMethod?: PropagationMethodInfo;
|
|
27
|
+
plantSize?: PlantSize;
|
|
28
|
+
growthClassInfo?: GrowthClassInfo;
|
|
29
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ImageInfo = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const PlantTechnicalSheet_1 = require("./PlantTechnicalSheet");
|
|
15
|
+
const PlantGrowthType_1 = require("./PlantGrowthType");
|
|
16
|
+
const LightInfo_1 = require("./LightInfo");
|
|
17
|
+
const HumidityInfo_1 = require("./HumidityInfo");
|
|
18
|
+
const ClimateIdeal_1 = require("./ClimateIdeal");
|
|
19
|
+
const SubstrateInfo_1 = require("./SubstrateInfo");
|
|
20
|
+
const FertilizationInfo_1 = require("./FertilizationInfo");
|
|
21
|
+
const PestInfo_1 = require("./PestInfo");
|
|
22
|
+
const PropagationMethodInfo_1 = require("./PropagationMethodInfo");
|
|
23
|
+
const PlantSize_1 = require("./PlantSize");
|
|
24
|
+
const GrowthClassInfo_1 = require("./GrowthClassInfo");
|
|
25
|
+
let ImageInfo = class ImageInfo {
|
|
26
|
+
};
|
|
27
|
+
exports.ImageInfo = ImageInfo;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("increment"),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ImageInfo.prototype, "idImage", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)("varchar", { length: 500 }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ImageInfo.prototype, "url", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)("text", { nullable: true }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ImageInfo.prototype, "description", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true }),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], ImageInfo.prototype, "isActive", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.ManyToOne)(() => PlantTechnicalSheet_1.PlantTechnicalSheet, (sheet) => sheet.images, {
|
|
46
|
+
nullable: true,
|
|
47
|
+
onDelete: "CASCADE",
|
|
48
|
+
}),
|
|
49
|
+
(0, typeorm_1.JoinColumn)({ name: "plantTechnicalSheetId" }),
|
|
50
|
+
__metadata("design:type", PlantTechnicalSheet_1.PlantTechnicalSheet)
|
|
51
|
+
], ImageInfo.prototype, "plantTechnicalSheet", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.ManyToOne)(() => PlantGrowthType_1.PlantGrowthType, (growthType) => growthType.images, {
|
|
54
|
+
nullable: true,
|
|
55
|
+
}),
|
|
56
|
+
(0, typeorm_1.JoinColumn)({ name: "plantGrowthTypeId" }),
|
|
57
|
+
__metadata("design:type", PlantGrowthType_1.PlantGrowthType)
|
|
58
|
+
], ImageInfo.prototype, "plantGrowthType", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.ManyToOne)(() => LightInfo_1.LightInfo, (lightInfo) => lightInfo.images, {
|
|
61
|
+
nullable: true,
|
|
62
|
+
}),
|
|
63
|
+
(0, typeorm_1.JoinColumn)({ name: "lightInfoId" }),
|
|
64
|
+
__metadata("design:type", LightInfo_1.LightInfo)
|
|
65
|
+
], ImageInfo.prototype, "lightInfo", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.ManyToOne)(() => HumidityInfo_1.HumidityInfo, (humidityInfo) => humidityInfo.images, {
|
|
68
|
+
nullable: true,
|
|
69
|
+
}),
|
|
70
|
+
(0, typeorm_1.JoinColumn)({ name: "humidityInfoId" }),
|
|
71
|
+
__metadata("design:type", HumidityInfo_1.HumidityInfo)
|
|
72
|
+
], ImageInfo.prototype, "humidityInfo", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.ManyToOne)(() => ClimateIdeal_1.ClimateIdeal, (climate) => climate.images, {
|
|
75
|
+
nullable: true,
|
|
76
|
+
}),
|
|
77
|
+
(0, typeorm_1.JoinColumn)({ name: "climateIdealId" }),
|
|
78
|
+
__metadata("design:type", ClimateIdeal_1.ClimateIdeal)
|
|
79
|
+
], ImageInfo.prototype, "climateIdeal", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.ManyToOne)(() => SubstrateInfo_1.SubstrateInfo, (substrate) => substrate.images, {
|
|
82
|
+
nullable: true,
|
|
83
|
+
}),
|
|
84
|
+
(0, typeorm_1.JoinColumn)({ name: "substrateInfoId" }),
|
|
85
|
+
__metadata("design:type", SubstrateInfo_1.SubstrateInfo)
|
|
86
|
+
], ImageInfo.prototype, "substrateInfo", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.ManyToOne)(() => FertilizationInfo_1.FertilizationInfo, (f) => f.images, {
|
|
89
|
+
nullable: true,
|
|
90
|
+
}),
|
|
91
|
+
(0, typeorm_1.JoinColumn)({ name: "fertilizationInfoId" }),
|
|
92
|
+
__metadata("design:type", FertilizationInfo_1.FertilizationInfo)
|
|
93
|
+
], ImageInfo.prototype, "fertilizationInfo", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.ManyToOne)(() => PestInfo_1.PestInfo, (pest) => pest.images, {
|
|
96
|
+
nullable: true,
|
|
97
|
+
}),
|
|
98
|
+
(0, typeorm_1.JoinColumn)({ name: "pestId" }),
|
|
99
|
+
__metadata("design:type", PestInfo_1.PestInfo)
|
|
100
|
+
], ImageInfo.prototype, "pest", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.ManyToOne)(() => PropagationMethodInfo_1.PropagationMethodInfo, (info) => info.images, {
|
|
103
|
+
nullable: true,
|
|
104
|
+
}),
|
|
105
|
+
(0, typeorm_1.JoinColumn)({ name: "propagationMethodId" }),
|
|
106
|
+
__metadata("design:type", PropagationMethodInfo_1.PropagationMethodInfo)
|
|
107
|
+
], ImageInfo.prototype, "propagationMethod", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.ManyToOne)(() => PlantSize_1.PlantSize, (size) => size.images, {
|
|
110
|
+
nullable: true,
|
|
111
|
+
}),
|
|
112
|
+
(0, typeorm_1.JoinColumn)({ name: "plantSizeId" }),
|
|
113
|
+
__metadata("design:type", PlantSize_1.PlantSize)
|
|
114
|
+
], ImageInfo.prototype, "plantSize", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, typeorm_1.ManyToOne)(() => GrowthClassInfo_1.GrowthClassInfo, (growthClass) => growthClass.images, {
|
|
117
|
+
nullable: true,
|
|
118
|
+
}),
|
|
119
|
+
(0, typeorm_1.JoinColumn)({ name: "growthClassInfoId" }),
|
|
120
|
+
__metadata("design:type", GrowthClassInfo_1.GrowthClassInfo)
|
|
121
|
+
], ImageInfo.prototype, "growthClassInfo", void 0);
|
|
122
|
+
exports.ImageInfo = ImageInfo = __decorate([
|
|
123
|
+
(0, typeorm_1.Entity)("technical_sheet_images")
|
|
124
|
+
], ImageInfo);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ObjectLiteral } from 'typeorm';
|
|
2
|
+
import { LightRequirement } from './catalogs/light-info';
|
|
3
|
+
import { ImageInfo } from './ImageInfo';
|
|
4
|
+
export declare class LightInfo implements ObjectLiteral {
|
|
5
|
+
idLightInfo: number;
|
|
6
|
+
type: LightRequirement;
|
|
7
|
+
description?: string;
|
|
8
|
+
images?: ImageInfo[];
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.LightInfo = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const light_info_1 = require("./catalogs/light-info");
|
|
15
|
+
const ImageInfo_1 = require("./ImageInfo");
|
|
16
|
+
const enumColumn_1 = require("./utils/enumColumn");
|
|
17
|
+
let LightInfo = class LightInfo {
|
|
18
|
+
};
|
|
19
|
+
exports.LightInfo = LightInfo;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('increment'),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], LightInfo.prototype, "idLightInfo", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, enumColumn_1.EnumColumn)(Object.keys(light_info_1.LIGHT)),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], LightInfo.prototype, "type", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)('text', { nullable: true }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], LightInfo.prototype, "description", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.OneToMany)(() => ImageInfo_1.ImageInfo, (image) => image.lightInfo, {
|
|
34
|
+
cascade: true,
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], LightInfo.prototype, "images", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], LightInfo.prototype, "isActive", void 0);
|
|
42
|
+
exports.LightInfo = LightInfo = __decorate([
|
|
43
|
+
(0, typeorm_1.Entity)('light_info')
|
|
44
|
+
], LightInfo);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ObjectLiteral } from 'typeorm';
|
|
2
|
+
import { PlantTechnicalSheet } from './PlantTechnicalSheet';
|
|
3
|
+
import { ImageInfo } from './ImageInfo';
|
|
4
|
+
import { PestType, PlantPart, ControlMethod } from './catalogs/pest-info';
|
|
5
|
+
export declare class PestInfo implements ObjectLiteral {
|
|
6
|
+
idPestInfo: number;
|
|
7
|
+
commonName: string;
|
|
8
|
+
scientificName?: string;
|
|
9
|
+
type: PestType;
|
|
10
|
+
affectedParts: PlantPart;
|
|
11
|
+
symptoms: string;
|
|
12
|
+
appearanceConditions?: string;
|
|
13
|
+
controlMethod: ControlMethod;
|
|
14
|
+
controlNotes?: string;
|
|
15
|
+
technicalSheet: PlantTechnicalSheet;
|
|
16
|
+
images?: ImageInfo[];
|
|
17
|
+
isActive: boolean;
|
|
18
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PestInfo = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const PlantTechnicalSheet_1 = require("./PlantTechnicalSheet");
|
|
15
|
+
const ImageInfo_1 = require("./ImageInfo");
|
|
16
|
+
const pest_info_1 = require("./catalogs/pest-info");
|
|
17
|
+
const enumColumn_1 = require("./utils/enumColumn");
|
|
18
|
+
let PestInfo = class PestInfo {
|
|
19
|
+
};
|
|
20
|
+
exports.PestInfo = PestInfo;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('increment'),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], PestInfo.prototype, "idPestInfo", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)('varchar', { length: 255 }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], PestInfo.prototype, "commonName", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)('varchar', { nullable: true, length: 255 }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PestInfo.prototype, "scientificName", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, enumColumn_1.EnumColumn)(Object.keys(pest_info_1.PEST_TYPE)),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PestInfo.prototype, "type", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, enumColumn_1.EnumColumn)(Object.keys(pest_info_1.PLANT_PART)),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], PestInfo.prototype, "affectedParts", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)('text'),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], PestInfo.prototype, "symptoms", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)('text', { nullable: true }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], PestInfo.prototype, "appearanceConditions", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, enumColumn_1.EnumColumn)(Object.keys(pest_info_1.CONTROL_METHOD)),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], PestInfo.prototype, "controlMethod", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)('text', { nullable: true }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], PestInfo.prototype, "controlNotes", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.ManyToOne)(() => PlantTechnicalSheet_1.PlantTechnicalSheet, (sheet) => sheet.pests, {
|
|
59
|
+
onDelete: 'CASCADE',
|
|
60
|
+
}),
|
|
61
|
+
(0, typeorm_1.JoinColumn)({ name: 'technicalSheetId' }),
|
|
62
|
+
__metadata("design:type", PlantTechnicalSheet_1.PlantTechnicalSheet)
|
|
63
|
+
], PestInfo.prototype, "technicalSheet", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.OneToMany)(() => ImageInfo_1.ImageInfo, (image) => image.pest, {
|
|
66
|
+
cascade: true,
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", Array)
|
|
69
|
+
], PestInfo.prototype, "images", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
72
|
+
__metadata("design:type", Boolean)
|
|
73
|
+
], PestInfo.prototype, "isActive", void 0);
|
|
74
|
+
exports.PestInfo = PestInfo = __decorate([
|
|
75
|
+
(0, typeorm_1.Entity)('pests')
|
|
76
|
+
], PestInfo);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ObjectLiteral } from 'typeorm';
|
|
2
|
+
import { GROWTH_AREA, GROWTH_HABIT } from './catalogs/growth-type';
|
|
3
|
+
import { ImageInfo } from './ImageInfo';
|
|
4
|
+
export type PlantGrowthArea = keyof typeof GROWTH_AREA;
|
|
5
|
+
export type PlantGrowthHabit = keyof typeof GROWTH_HABIT;
|
|
6
|
+
export declare class PlantGrowthType implements ObjectLiteral {
|
|
7
|
+
idPlantGrowthType: number;
|
|
8
|
+
area: PlantGrowthArea;
|
|
9
|
+
habit: PlantGrowthHabit;
|
|
10
|
+
description?: string;
|
|
11
|
+
images?: ImageInfo[];
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PlantGrowthType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const enumColumn_1 = require("./utils/enumColumn");
|
|
15
|
+
const growth_type_1 = require("./catalogs/growth-type");
|
|
16
|
+
const ImageInfo_1 = require("./ImageInfo");
|
|
17
|
+
let PlantGrowthType = class PlantGrowthType {
|
|
18
|
+
};
|
|
19
|
+
exports.PlantGrowthType = PlantGrowthType;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('increment'),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], PlantGrowthType.prototype, "idPlantGrowthType", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, enumColumn_1.EnumColumn)(Object.keys(growth_type_1.GROWTH_AREA)),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], PlantGrowthType.prototype, "area", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, enumColumn_1.EnumColumn)(Object.keys(growth_type_1.GROWTH_HABIT)),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], PlantGrowthType.prototype, "habit", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)('text', { nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], PlantGrowthType.prototype, "description", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.OneToMany)(() => ImageInfo_1.ImageInfo, (image) => image.plantGrowthType, {
|
|
38
|
+
cascade: true,
|
|
39
|
+
}),
|
|
40
|
+
__metadata("design:type", Array)
|
|
41
|
+
], PlantGrowthType.prototype, "images", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], PlantGrowthType.prototype, "isActive", void 0);
|
|
46
|
+
exports.PlantGrowthType = PlantGrowthType = __decorate([
|
|
47
|
+
(0, typeorm_1.Entity)('plant_growth_types')
|
|
48
|
+
], PlantGrowthType);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ObjectLiteral } from 'typeorm';
|
|
2
|
+
import { GrowthHabit } from './catalogs/plant-size';
|
|
3
|
+
import { ImageInfo } from './ImageInfo';
|
|
4
|
+
export declare class PlantSize implements ObjectLiteral {
|
|
5
|
+
idPlantSize: number;
|
|
6
|
+
heightCm: number;
|
|
7
|
+
widthCm?: number | null;
|
|
8
|
+
habit?: GrowthHabit | undefined;
|
|
9
|
+
notes?: string | null;
|
|
10
|
+
images?: ImageInfo[] | undefined;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PlantSize = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const plant_size_1 = require("./catalogs/plant-size");
|
|
15
|
+
const ImageInfo_1 = require("./ImageInfo");
|
|
16
|
+
const enumColumn_1 = require("./utils/enumColumn");
|
|
17
|
+
let PlantSize = class PlantSize {
|
|
18
|
+
};
|
|
19
|
+
exports.PlantSize = PlantSize;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.PrimaryGeneratedColumn)('increment'),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], PlantSize.prototype, "idPlantSize", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.Column)('int'),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], PlantSize.prototype, "heightCm", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)('int', { nullable: true }),
|
|
30
|
+
__metadata("design:type", Object)
|
|
31
|
+
], PlantSize.prototype, "widthCm", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, enumColumn_1.EnumColumn)(Object.keys(plant_size_1.GROWTH_HABIT_GEOM), { nullable: true }),
|
|
34
|
+
__metadata("design:type", Object)
|
|
35
|
+
], PlantSize.prototype, "habit", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)('text', { nullable: true }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], PlantSize.prototype, "notes", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.OneToMany)(() => ImageInfo_1.ImageInfo, (image) => image.plantSize, {
|
|
42
|
+
cascade: true,
|
|
43
|
+
nullable: true,
|
|
44
|
+
}),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], PlantSize.prototype, "images", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], PlantSize.prototype, "isActive", void 0);
|
|
51
|
+
exports.PlantSize = PlantSize = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)('plant_size')
|
|
53
|
+
], PlantSize);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ObjectLiteral } from "typeorm";
|
|
2
|
+
import { PlantGrowthType } from "./PlantGrowthType";
|
|
3
|
+
import { LightInfo } from "./LightInfo";
|
|
4
|
+
import { HumidityInfo } from "./HumidityInfo";
|
|
5
|
+
import { ClimateIdeal } from "./ClimateIdeal";
|
|
6
|
+
import { SubstrateInfo } from "./SubstrateInfo";
|
|
7
|
+
import { FertilizationInfo } from "./FertilizationInfo";
|
|
8
|
+
import { PestInfo } from "./PestInfo";
|
|
9
|
+
import { CareInstructions } from "./CareInstructions";
|
|
10
|
+
import { PropagationMethodInfo } from "./PropagationMethodInfo";
|
|
11
|
+
import { PlantSize } from "./PlantSize";
|
|
12
|
+
import { GrowthClassInfo } from "./GrowthClassInfo";
|
|
13
|
+
import { ImageInfo } from "./ImageInfo";
|
|
14
|
+
export declare class PlantTechnicalSheet implements ObjectLiteral {
|
|
15
|
+
idPlantTechnicalSheet: number;
|
|
16
|
+
commonName: string;
|
|
17
|
+
scientificName: string;
|
|
18
|
+
origin: string;
|
|
19
|
+
plantType: PlantGrowthType;
|
|
20
|
+
light: LightInfo;
|
|
21
|
+
humidity: HumidityInfo;
|
|
22
|
+
climate: ClimateIdeal;
|
|
23
|
+
substrate: SubstrateInfo;
|
|
24
|
+
fertilization: FertilizationInfo;
|
|
25
|
+
pests: PestInfo[];
|
|
26
|
+
care: CareInstructions;
|
|
27
|
+
propagation: PropagationMethodInfo;
|
|
28
|
+
size: PlantSize;
|
|
29
|
+
growthClass: GrowthClassInfo;
|
|
30
|
+
images?: ImageInfo[];
|
|
31
|
+
notes?: string;
|
|
32
|
+
isActive: boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PlantTechnicalSheet = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const PlantGrowthType_1 = require("./PlantGrowthType");
|
|
15
|
+
const LightInfo_1 = require("./LightInfo");
|
|
16
|
+
const HumidityInfo_1 = require("./HumidityInfo");
|
|
17
|
+
const ClimateIdeal_1 = require("./ClimateIdeal");
|
|
18
|
+
const SubstrateInfo_1 = require("./SubstrateInfo");
|
|
19
|
+
const FertilizationInfo_1 = require("./FertilizationInfo");
|
|
20
|
+
const PestInfo_1 = require("./PestInfo");
|
|
21
|
+
const CareInstructions_1 = require("./CareInstructions");
|
|
22
|
+
const PropagationMethodInfo_1 = require("./PropagationMethodInfo");
|
|
23
|
+
const PlantSize_1 = require("./PlantSize");
|
|
24
|
+
const GrowthClassInfo_1 = require("./GrowthClassInfo");
|
|
25
|
+
const ImageInfo_1 = require("./ImageInfo");
|
|
26
|
+
let PlantTechnicalSheet = class PlantTechnicalSheet {
|
|
27
|
+
};
|
|
28
|
+
exports.PlantTechnicalSheet = PlantTechnicalSheet;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("increment"),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], PlantTechnicalSheet.prototype, "idPlantTechnicalSheet", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)("varchar", { length: 255 }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], PlantTechnicalSheet.prototype, "commonName", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)("varchar", { length: 255 }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], PlantTechnicalSheet.prototype, "scientificName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)("varchar", { length: 255 }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], PlantTechnicalSheet.prototype, "origin", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.OneToOne)(() => PlantGrowthType_1.PlantGrowthType, { cascade: true }),
|
|
47
|
+
(0, typeorm_1.JoinColumn)({ name: "plantGrowthTypeId" }),
|
|
48
|
+
__metadata("design:type", PlantGrowthType_1.PlantGrowthType)
|
|
49
|
+
], PlantTechnicalSheet.prototype, "plantType", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.OneToOne)(() => LightInfo_1.LightInfo, { cascade: true }),
|
|
52
|
+
(0, typeorm_1.JoinColumn)({ name: "lightInfoId" }),
|
|
53
|
+
__metadata("design:type", LightInfo_1.LightInfo)
|
|
54
|
+
], PlantTechnicalSheet.prototype, "light", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.OneToOne)(() => HumidityInfo_1.HumidityInfo, { cascade: true }),
|
|
57
|
+
(0, typeorm_1.JoinColumn)({ name: "humidityInfoId" }),
|
|
58
|
+
__metadata("design:type", HumidityInfo_1.HumidityInfo)
|
|
59
|
+
], PlantTechnicalSheet.prototype, "humidity", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.OneToOne)(() => ClimateIdeal_1.ClimateIdeal, { cascade: true }),
|
|
62
|
+
(0, typeorm_1.JoinColumn)({ name: "climateIdealId" }),
|
|
63
|
+
__metadata("design:type", ClimateIdeal_1.ClimateIdeal)
|
|
64
|
+
], PlantTechnicalSheet.prototype, "climate", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.OneToOne)(() => SubstrateInfo_1.SubstrateInfo, { cascade: true }),
|
|
67
|
+
(0, typeorm_1.JoinColumn)({ name: "substrateInfoId" }),
|
|
68
|
+
__metadata("design:type", SubstrateInfo_1.SubstrateInfo)
|
|
69
|
+
], PlantTechnicalSheet.prototype, "substrate", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.OneToOne)(() => FertilizationInfo_1.FertilizationInfo, { cascade: true }),
|
|
72
|
+
(0, typeorm_1.JoinColumn)({ name: "fertilizationInfoId" }),
|
|
73
|
+
__metadata("design:type", FertilizationInfo_1.FertilizationInfo)
|
|
74
|
+
], PlantTechnicalSheet.prototype, "fertilization", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.OneToMany)(() => PestInfo_1.PestInfo, (pest) => pest.technicalSheet, {
|
|
77
|
+
cascade: true,
|
|
78
|
+
}),
|
|
79
|
+
__metadata("design:type", Array)
|
|
80
|
+
], PlantTechnicalSheet.prototype, "pests", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.OneToOne)(() => CareInstructions_1.CareInstructions, { cascade: true }),
|
|
83
|
+
(0, typeorm_1.JoinColumn)({ name: "careInstructionsId" }),
|
|
84
|
+
__metadata("design:type", CareInstructions_1.CareInstructions)
|
|
85
|
+
], PlantTechnicalSheet.prototype, "care", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.OneToOne)(() => PropagationMethodInfo_1.PropagationMethodInfo, { cascade: true }),
|
|
88
|
+
(0, typeorm_1.JoinColumn)({ name: "propagationMethodId" }),
|
|
89
|
+
__metadata("design:type", PropagationMethodInfo_1.PropagationMethodInfo)
|
|
90
|
+
], PlantTechnicalSheet.prototype, "propagation", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.OneToOne)(() => PlantSize_1.PlantSize, { cascade: true }),
|
|
93
|
+
(0, typeorm_1.JoinColumn)({ name: "plantSizeId" }),
|
|
94
|
+
__metadata("design:type", PlantSize_1.PlantSize)
|
|
95
|
+
], PlantTechnicalSheet.prototype, "size", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.OneToOne)(() => GrowthClassInfo_1.GrowthClassInfo, { cascade: true }),
|
|
98
|
+
(0, typeorm_1.JoinColumn)({ name: "growthClassInfoId" }),
|
|
99
|
+
__metadata("design:type", GrowthClassInfo_1.GrowthClassInfo)
|
|
100
|
+
], PlantTechnicalSheet.prototype, "growthClass", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.OneToMany)(() => ImageInfo_1.ImageInfo, (img) => img.plantTechnicalSheet, {
|
|
103
|
+
cascade: true,
|
|
104
|
+
}),
|
|
105
|
+
__metadata("design:type", Array)
|
|
106
|
+
], PlantTechnicalSheet.prototype, "images", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, typeorm_1.Column)("text", { nullable: true }),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], PlantTechnicalSheet.prototype, "notes", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, typeorm_1.Column)({ type: "boolean", default: true }),
|
|
113
|
+
__metadata("design:type", Boolean)
|
|
114
|
+
], PlantTechnicalSheet.prototype, "isActive", void 0);
|
|
115
|
+
exports.PlantTechnicalSheet = PlantTechnicalSheet = __decorate([
|
|
116
|
+
(0, typeorm_1.Entity)("plant_technical_sheets")
|
|
117
|
+
], PlantTechnicalSheet);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ObjectLiteral } from "typeorm";
|
|
2
|
+
import { PropagationMethod } from "./catalogs/propagation-method";
|
|
3
|
+
import { ImageInfo } from "./ImageInfo";
|
|
4
|
+
export declare class PropagationMethodInfo implements ObjectLiteral {
|
|
5
|
+
idPropagationMethodInfo: number;
|
|
6
|
+
type: PropagationMethod | undefined;
|
|
7
|
+
description?: string | null;
|
|
8
|
+
images?: ImageInfo[] | undefined;
|
|
9
|
+
isActive?: boolean | undefined;
|
|
10
|
+
}
|