Added user login & registration. Added SQL file for postgres database.

This commit is contained in:
Tom
2025-02-11 20:38:37 +00:00
commit d907f425dc
45 changed files with 11487 additions and 0 deletions

View File

@ -0,0 +1,6 @@
import { ValueTransformer } from "typeorm";
export const BigIntTransformer: ValueTransformer = {
to: (entityValue: bigint) => entityValue.toString(),
from: (databaseValue: string): bigint => BigInt(databaseValue),
};

View File

@ -0,0 +1,6 @@
import { ValueTransformer } from "typeorm";
export const StringToLowerCaseTransformer: ValueTransformer = {
to: (entityValue: string) => entityValue.toLowerCase(),
from: (databaseValue: string): string => databaseValue,
};