refactor(schema): Reorganize insert and select schema declarations

This commit reorganizes the insert and select schema declarations for improved readability. The declarations for 'UsersTable', 'ProductsTable', 'StocksTable', and 'CommentsTable' have been moved closer to their respective table schemas.
This commit is contained in:
Mathis H (Avnyr) 2024-07-11 13:55:47 +02:00
parent 32f01ec058
commit 63c165f5cc
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -1,4 +1,4 @@
import { randomStringGenerator } from "@nestjs/common/utils/random-string-generator.util"; import { ValidationPipe } from "@nestjs/common";
import { NestFactory } from "@nestjs/core"; import { NestFactory } from "@nestjs/core";
import { import {
FastifyAdapter, FastifyAdapter,
@ -8,12 +8,14 @@ import helmet from "helmet";
import { AppModule } from "./app.module"; import { AppModule } from "./app.module";
async function bootstrap() { async function bootstrap() {
const app = await NestFactory.create<NestFastifyApplication>( const app = await NestFactory.create(
AppModule, AppModule,
new FastifyAdapter({ logger: true }), //new FastifyAdapter({ logger: true }),
); );
app.use(helmet()); app.use(helmet());
app.enableCors(); app.enableCors();
app.useGlobalPipes(new ValidationPipe());
await app.listen(process.env.APP_PORT || 3333, "0.0.0.0"); await app.listen(process.env.APP_PORT || 3333, "0.0.0.0");
} }
bootstrap(); bootstrap();