-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
53 lines (50 loc) · 1.24 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import Granule, {
init as granuleInit,
associate as granuleAssociate,
} from './models/granule.js';
import L2RasterProduct, {
init as l2RasterProductInit,
associate as l2RasterProductAssociate,
} from './models/l2-raster-product.js';
import ProductHistory, {
init as productHistoryInit,
associate as productHistoryAssociate,
} from './models/product-history.js';
import RasterDefinition, {
init as rasterDefinitionInit,
associate as rasterDefinitionAssociate,
} from './models/raster-definition.js';
import Status, {
init as statusInit,
associate as statusAssociate,
} from './models/status.js';
import User, {
init as userInit,
associate as userAssociate,
} from './models/user.js';
/**
* Initialize all models
* @param {Sequelize} sequelize - instance of Sequelize
*/
export default function init(sequelize) {
userInit(sequelize);
rasterDefinitionInit(sequelize);
l2RasterProductInit(sequelize);
granuleInit(sequelize);
productHistoryInit(sequelize);
statusInit(sequelize);
userAssociate();
rasterDefinitionAssociate();
l2RasterProductAssociate();
granuleAssociate();
productHistoryAssociate();
statusAssociate();
}
export {
Granule,
L2RasterProduct,
ProductHistory,
RasterDefinition,
Status,
User,
};