diff --git a/src/index.ts b/src/index.ts index 6bed78120b2db67549d0ed542080ba023f648604..e791bced09bee97365a0b5ec613b8f2a3287972a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -5,6 +5,7 @@ import cors from 'cors'; import swaggerJsDoc, { Options } from 'swagger-jsdoc'; import swaggerUi from 'swagger-ui-express'; import Routes from './routes'; +import { User } from './models/users.model'; const app: Application = express(); const PORT = process.env.PORT || 3000; @@ -42,6 +43,8 @@ app.use(express.raw({ limit: '50mb', })); +User.sync(); + app.use(Routes); app.listen(PORT, (): void => {