We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 213ab71 commit 4094658Copy full SHA for 4094658
models/l2-raster-product.js
@@ -1,5 +1,6 @@
1
import {DataTypes, Model} from 'sequelize';
2
import {v4 as uuidv4} from 'uuid';
3
+import Granule from './granule.js';
4
import Status from './status.js';
5
import User from './user.js';
6
@@ -57,6 +58,9 @@ export function init(sequelize) {
57
58
* Setup model associations
59
*/
60
export function associate() {
61
+ L2RasterProduct.hasMany(Granule, {
62
+ foreignKey: 'productId',
63
+ });
64
L2RasterProduct.hasMany(Status, {
65
foreignKey: 'productId',
66
});
0 commit comments