Muluhabt ERP modules

This commit is contained in:
Mulu Mehari
2026-08-25 00:11:39 +03:00
parent 5c2100e76d
commit 70171fa9d8
441 changed files with 68587 additions and 214 deletions

View File

@@ -2,11 +2,12 @@
GT06_TCP_PORT=5023
GT06_TCP_HOST=0.0.0.0
# Shared freight database (same DB as @edr/freight-api). This app only writes
# freight.gps_devices / freight.gps_positions and NEVER runs migrations.
# The single, schema-separated platform database (same DB as @edr/freight-api).
# This app only writes freight.gps_devices / freight.gps_positions — both
# schema-qualified on the entities — and NEVER runs migrations.
DB_HOST=localhost
DB_PORT=5433
DB_NAME=edr_freight
DB_USER=postgres
DB_PASSWORD=postgres
DB_PORT=5432
DB_NAME=edr_database
DB_USER=edr
DB_PASSWORD=edr_secret
# TYPEORM_LOGGING=true # uncomment for SQL logging

View File

@@ -15,10 +15,11 @@ export default registerAs("database", (): TypeOrmModuleOptions => {
return {
type: "postgres",
host: process.env.DB_HOST ?? "localhost",
port: parseInt(process.env.DB_PORT ?? "5433", 10),
username: process.env.DB_USER ?? "postgres",
password: process.env.DB_PASSWORD ?? "",
database: process.env.DB_NAME ?? "edr_freight",
port: parseInt(process.env.DB_PORT ?? "5432", 10),
username: process.env.DB_USER ?? "edr",
password: process.env.DB_PASSWORD ?? "edr_secret",
// Same single, schema-separated platform database as every other app.
database: process.env.DB_NAME ?? "edr_database",
entities: [GpsDevice, GpsPosition],
migrations: [],
migrationsRun: false,