import { NestFactory } from '@nestjs/core';
import { Group, Agent } from '@prisma/client';

declare module 'express' {
    interface Request {
        group: Group;
        agent: Agent;
    }
}

import * as dotenv from 'dotenv';
dotenv.config();

import { AppModule } from './app.module';

(async () => {
    const app = await NestFactory.create(AppModule);

    await app.listen(3000);
})();