feat: add initial migrations

This commit is contained in:
2026-07-08 09:14:10 +03:30
parent b4570f6df9
commit 146e598bf0
7 changed files with 100 additions and 7 deletions
-1
View File
@@ -7,5 +7,4 @@ export default registerAs('database', () => ({
password: process.env.DATABASE_PASS,
name: process.env.DATABASE_NAME,
autoLoad: process.env.DATABASE_AUTOLOAD === 'true' ? true : false,
synchronize: process.env.DATABASE_SYNC === 'true' ? true : false,
}));
-1
View File
@@ -10,7 +10,6 @@ export default Joi.object({
DATABASE_PASS: Joi.string().required(),
DATABASE_NAME: Joi.string().required(),
DATABASE_AUTOLOAD: Joi.boolean().default('true'),
DATABASE_SYNC: Joi.boolean().default('true'),
JWT_ACCESS_SECRET: Joi.string().required(),
JWT_ACCESS_TTL: Joi.number().required(),
JWT_REFRESH_SECRET: Joi.string().required(),