Added user login & registration. Added SQL file for postgres database.
This commit is contained in:
@ -0,0 +1,6 @@
|
||||
import { ValueTransformer } from "typeorm";
|
||||
|
||||
export const BigIntTransformer: ValueTransformer = {
|
||||
to: (entityValue: bigint) => entityValue.toString(),
|
||||
from: (databaseValue: string): bigint => BigInt(databaseValue),
|
||||
};
|
@ -0,0 +1,6 @@
|
||||
import { ValueTransformer } from "typeorm";
|
||||
|
||||
export const StringToLowerCaseTransformer: ValueTransformer = {
|
||||
to: (entityValue: string) => entityValue.toLowerCase(),
|
||||
from: (databaseValue: string): string => databaseValue,
|
||||
};
|
Reference in New Issue
Block a user