From 3161dd7ee95b6c7d70f8341298dd4fab84cda8b0 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 2 Sep 2022 14:47:08 -0700 Subject: es6 migration --- db/models/accounts.js | 3 ++- db/models/codes.js | 3 ++- db/models/deposits.js | 3 ++- db/models/invoices.js | 3 ++- db/models/keys.js | 3 ++- db/models/orders.js | 3 ++- db/models/payments.js | 3 ++- db/models/referrals.js | 3 ++- db/models/users.js | 3 ++- db/models/waiting_list.js | 3 ++- db/models/withdrawals.js | 3 ++- 11 files changed, 22 insertions(+), 11 deletions(-) (limited to 'db/models') diff --git a/db/models/accounts.js b/db/models/accounts.js index 3dd9ff71..c7e76277 100644 --- a/db/models/accounts.js +++ b/db/models/accounts.js @@ -1,4 +1,5 @@ -import { DataTypes } from 'sequelize'; +import db from "../db.js"; +import { DataTypes } from '@sequelize/core'; const attributes = { id: { diff --git a/db/models/codes.js b/db/models/codes.js index b00f5bfb..57edfb35 100644 --- a/db/models/codes.js +++ b/db/models/codes.js @@ -1,4 +1,5 @@ -import { DataTypes } from 'sequelize'; +import db from "../db.js"; +import { DataTypes } from '@sequelize/core'; const attributes = { code: { diff --git a/db/models/deposits.js b/db/models/deposits.js index c52d37dd..0d030bf2 100644 --- a/db/models/deposits.js +++ b/db/models/deposits.js @@ -1,4 +1,5 @@ -import { DataTypes } from 'sequelize'; +import db from "../db.js"; +import { DataTypes } from '@sequelize/core'; const attributes = { id: { diff --git a/db/models/invoices.js b/db/models/invoices.js index 54f3f8bd..c405b122 100644 --- a/db/models/invoices.js +++ b/db/models/invoices.js @@ -1,4 +1,5 @@ -import { DataTypes } from 'sequelize'; +import db from "../db.js"; +import { DataTypes } from '@sequelize/core'; const attributes = { id: { diff --git a/db/models/keys.js b/db/models/keys.js index 47ec7745..8807e00e 100644 --- a/db/models/keys.js +++ b/db/models/keys.js @@ -1,4 +1,5 @@ -import { DataTypes } from 'sequelize'; +import db from "../db.js"; +import { DataTypes } from '@sequelize/core'; const attributes = { id: { diff --git a/db/models/orders.js b/db/models/orders.js index 864b6b44..60fd539b 100644 --- a/db/models/orders.js +++ b/db/models/orders.js @@ -1,4 +1,5 @@ -import { DataTypes } from 'sequelize'; +import db from "../db.js"; +import { DataTypes } from '@sequelize/core'; const attributes = { id: { diff --git a/db/models/payments.js b/db/models/payments.js index fd6b3593..31ce4855 100644 --- a/db/models/payments.js +++ b/db/models/payments.js @@ -1,4 +1,5 @@ -import { DataTypes } from 'sequelize'; +import db from "../db.js"; +import { DataTypes } from '@sequelize/core'; const attributes = { id: { diff --git a/db/models/referrals.js b/db/models/referrals.js index 79c73e38..2d1e8d8c 100644 --- a/db/models/referrals.js +++ b/db/models/referrals.js @@ -1,4 +1,5 @@ -import { DataTypes } from 'sequelize'; +import db from "../db.js"; +import { DataTypes } from '@sequelize/core'; const attributes = { id: { diff --git a/db/models/users.js b/db/models/users.js index fa89f315..50b8941c 100644 --- a/db/models/users.js +++ b/db/models/users.js @@ -1,4 +1,5 @@ -import { DataTypes } from 'sequelize'; +import db from "../db.js"; +import { DataTypes } from '@sequelize/core'; const attributes = { id: { diff --git a/db/models/waiting_list.js b/db/models/waiting_list.js index 742306c0..76fb9e3f 100644 --- a/db/models/waiting_list.js +++ b/db/models/waiting_list.js @@ -1,4 +1,5 @@ -import { DataTypes } from 'sequelize'; +import db from "../db.js"; +import { DataTypes } from '@sequelize/core'; const attributes = { id: { diff --git a/db/models/withdrawals.js b/db/models/withdrawals.js index 12f6ee6d..53863cbf 100644 --- a/db/models/withdrawals.js +++ b/db/models/withdrawals.js @@ -1,4 +1,5 @@ -import { DataTypes } from 'sequelize'; +import db from "../db.js"; +import { DataTypes } from '@sequelize/core'; const attributes = { id: { -- cgit v1.2.3