Remove unnecessary ORM code

This commit is contained in:
2021-04-10 05:17:13 -05:00
parent 3fa360a96b
commit 6043f0de46
6 changed files with 4 additions and 151 deletions

View File

@@ -1,5 +1,4 @@
import {Config, Controllers, HTTPServer, Files, Middlewares, Routing, Unit} from '@extollo/lib'
import {Database, Models} from "@extollo/orm";
import {CommandLine} from "@extollo/cli";
import {FirebaseUnit} from "./app/units/FirebaseUnit";
@@ -10,8 +9,6 @@ export const Units = [
CommandLine,
Controllers,
Middlewares,
Database,
Models,
Routing,
HTTPServer,

View File

@@ -1,14 +0,0 @@
import { env } from "@extollo/lib";
export default {
connections: {
default: {
user: env('DATABASE_USERNAME', 'extollo'),
password: env('DATABASE_PASSWORD'),
host: env('DATABASE_HOST', 'localhost'),
port: env('DATABASE_PORT', 5432),
database: env('DATABASE_NAME', 'extollo_1'),
dialect: env('DATABASE_DIALECT', 'postgres'),
},
},
}

View File

@@ -1,5 +1,4 @@
import {env, basePath} from "@extollo/lib"
import {ORMSession} from "@extollo/orm"
import {env, basePath, MemorySession} from "@extollo/lib"
import {LocalFilesystem, LocalFilesystemConfig} from "@extollo/util"
export default {
@@ -7,7 +6,7 @@ export default {
session: {
/* The implementation of @extollo/lib.Session that serves as the session backend. */
driver: ORMSession,
driver: MemorySession,
},
/*

View File

@@ -1,6 +0,0 @@
import {Model} from "@extollo/orm";
export class User extends Model<User> {
protected static table = 'users';
protected static key = 'user_id';
}