mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove database transpile objects
This commit is contained in:
parent
fea73e9769
commit
953866e8f5
165
database.d.ts
vendored
165
database.d.ts
vendored
@ -1,165 +0,0 @@
|
||||
/// <reference types="node" />
|
||||
declare module "entity/0001-init_db/Balance" {
|
||||
import { BaseEntity } from 'typeorm';
|
||||
export class Balance extends BaseEntity {
|
||||
id: number;
|
||||
userId: number;
|
||||
modified: Date;
|
||||
recordDate: Date;
|
||||
amount: number;
|
||||
}
|
||||
}
|
||||
declare module "entity/Balance" {
|
||||
export { Balance } from "entity/0001-init_db/Balance";
|
||||
}
|
||||
declare module "entity/0001-init_db/Migration" {
|
||||
import { BaseEntity } from 'typeorm';
|
||||
export class Migration extends BaseEntity {
|
||||
version: number;
|
||||
fileName: string;
|
||||
date: Date;
|
||||
}
|
||||
}
|
||||
declare module "entity/Migration" {
|
||||
export { Migration } from "entity/0001-init_db/Migration";
|
||||
}
|
||||
declare module "entity/0001-init_db/TransactionCreation" {
|
||||
import { BaseEntity, Timestamp } from 'typeorm';
|
||||
import { Transaction } from "entity/0001-init_db/Transaction";
|
||||
export class TransactionCreation extends BaseEntity {
|
||||
id: number;
|
||||
transactionId: number;
|
||||
userId: number;
|
||||
amount: number;
|
||||
targetDate: Timestamp;
|
||||
transaction: Transaction;
|
||||
}
|
||||
}
|
||||
declare module "entity/0001-init_db/TransactionSendCoin" {
|
||||
import { BaseEntity } from 'typeorm';
|
||||
import { Transaction } from "entity/0001-init_db/Transaction";
|
||||
export class TransactionSendCoin extends BaseEntity {
|
||||
id: number;
|
||||
transactionId: number;
|
||||
senderPublic: Buffer;
|
||||
userId: number;
|
||||
recipiantPublic: Buffer;
|
||||
recipiantUserId: number;
|
||||
amount: number;
|
||||
transaction: Transaction;
|
||||
}
|
||||
}
|
||||
declare module "entity/0001-init_db/Transaction" {
|
||||
import { BaseEntity } from 'typeorm';
|
||||
import { TransactionCreation } from "entity/0001-init_db/TransactionCreation";
|
||||
import { TransactionSendCoin } from "entity/0001-init_db/TransactionSendCoin";
|
||||
export class Transaction extends BaseEntity {
|
||||
id: number;
|
||||
transactionTypeId: number;
|
||||
txHash: Buffer;
|
||||
memo: string;
|
||||
received: Date;
|
||||
blockchainTypeId: number;
|
||||
transactionSendCoin: TransactionSendCoin;
|
||||
transactionCreation: TransactionCreation;
|
||||
}
|
||||
}
|
||||
declare module "entity/Transaction" {
|
||||
export { Transaction } from "entity/0001-init_db/Transaction";
|
||||
}
|
||||
declare module "entity/TransactionCreation" {
|
||||
export { TransactionCreation } from "entity/0001-init_db/TransactionCreation";
|
||||
}
|
||||
declare module "entity/TransactionSendCoin" {
|
||||
export { TransactionSendCoin } from "entity/0001-init_db/TransactionSendCoin";
|
||||
}
|
||||
declare module "entity/0002-add_settings/UserSetting" {
|
||||
import { BaseEntity } from 'typeorm';
|
||||
import { User } from "entity/0002-add_settings/User";
|
||||
export class UserSetting extends BaseEntity {
|
||||
id: number;
|
||||
userId: number;
|
||||
user: User;
|
||||
key: string;
|
||||
value: string;
|
||||
}
|
||||
}
|
||||
declare module "entity/0002-add_settings/User" {
|
||||
import { BaseEntity } from 'typeorm';
|
||||
import { UserSetting } from "entity/0002-add_settings/UserSetting";
|
||||
export class User extends BaseEntity {
|
||||
id: number;
|
||||
pubkey: Buffer;
|
||||
email: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
username: string;
|
||||
disabled: boolean;
|
||||
settings: UserSetting[];
|
||||
}
|
||||
}
|
||||
declare module "entity/User" {
|
||||
export { User } from "entity/0002-add_settings/User";
|
||||
}
|
||||
declare module "entity/UserSetting" {
|
||||
export { UserSetting } from "entity/0002-add_settings/UserSetting";
|
||||
}
|
||||
declare module "entity/0001-init_db/UserTransaction" {
|
||||
import { BaseEntity } from 'typeorm';
|
||||
export class UserTransaction extends BaseEntity {
|
||||
id: number;
|
||||
userId: number;
|
||||
transactionId: number;
|
||||
transactionTypeId: number;
|
||||
balance: number;
|
||||
balanceDate: Date;
|
||||
}
|
||||
}
|
||||
declare module "entity/UserTransaction" {
|
||||
export { UserTransaction } from "entity/0001-init_db/UserTransaction";
|
||||
}
|
||||
declare module "entity/0001-init_db/User" {
|
||||
import { BaseEntity } from 'typeorm';
|
||||
export class User extends BaseEntity {
|
||||
id: number;
|
||||
pubkey: Buffer;
|
||||
email: string;
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
username: string;
|
||||
disabled: boolean;
|
||||
}
|
||||
}
|
||||
declare module "migrations/0001-init_db" {
|
||||
export function upgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>): Promise<void>;
|
||||
export function downgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>): Promise<void>;
|
||||
}
|
||||
declare module "migrations/0002-add_settings" {
|
||||
export function upgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>): Promise<void>;
|
||||
export function downgrade(queryFn: (query: string, values?: any[]) => Promise<Array<any>>): Promise<void>;
|
||||
}
|
||||
declare module "src/config/index" {
|
||||
const CONFIG: {
|
||||
MIGRATIONS_TABLE: string;
|
||||
MIGRATIONS_DIRECTORY: string;
|
||||
DB_HOST: string;
|
||||
DB_PORT: number;
|
||||
DB_USER: string;
|
||||
DB_PASSWORD: string;
|
||||
DB_DATABASE: string;
|
||||
};
|
||||
export default CONFIG;
|
||||
}
|
||||
declare module "src/prepare" {
|
||||
const _default: () => Promise<void>;
|
||||
export default _default;
|
||||
}
|
||||
declare module "src/typeorm/connection" {
|
||||
import { Connection } from 'typeorm';
|
||||
const connection: () => Promise<Connection | null>;
|
||||
export default connection;
|
||||
}
|
||||
declare module "src/index" {
|
||||
import 'reflect-metadata';
|
||||
}
|
||||
//# sourceMappingURL=database.d.ts.map
|
||||
@ -1 +0,0 @@
|
||||
{"version":3,"file":"database.d.ts","sourceRoot":"","sources":["database/entity/0001-init_db/Balance.ts","database/entity/Balance.ts","database/entity/0001-init_db/Migration.ts","database/entity/Migration.ts","database/entity/0001-init_db/TransactionCreation.ts","database/entity/0001-init_db/TransactionSendCoin.ts","database/entity/0001-init_db/Transaction.ts","database/entity/Transaction.ts","database/entity/TransactionCreation.ts","database/entity/TransactionSendCoin.ts","database/entity/0002-add_settings/UserSetting.ts","database/entity/0002-add_settings/User.ts","database/entity/User.ts","database/entity/UserSetting.ts","database/entity/0001-init_db/UserTransaction.ts","database/entity/UserTransaction.ts","database/entity/0001-init_db/User.ts","database/migrations/0001-init_db.ts","database/migrations/0002-add_settings.ts","database/src/config/index.ts","database/src/prepare.ts","database/src/typeorm/connection.ts","database/src/index.ts"],"names":[],"mappings":";;IAAA,OAAO,EAAE,UAAU,EAA0C,MAAM,SAAS,CAAA;IAG5E,MAAM,OAAO,OAAQ,SAAQ,UAAU;QAErC,EAAE,EAAE,MAAM,CAAA;QAGV,MAAM,EAAE,MAAM,CAAA;QAGd,QAAQ,EAAE,IAAI,CAAA;QAGd,UAAU,EAAE,IAAI,CAAA;QAGhB,MAAM,EAAE,MAAM,CAAA;KACf;;;IClBD,OAAO,EAAE,OAAO,EAAE,oCAA8B;;;ICAhD,OAAO,EAAE,UAAU,EAA0C,MAAM,SAAS,CAAA;IAG5E,MAAM,OAAO,SAAU,SAAQ,UAAU;QAEvC,OAAO,EAAE,MAAM,CAAA;QAGf,QAAQ,EAAE,MAAM,CAAA;QAGhB,IAAI,EAAE,IAAI,CAAA;KACX;;;ICZD,OAAO,EAAE,SAAS,EAAE,sCAAgC;;;ICApD,OAAO,EACL,UAAU,EAIV,SAAS,EAGV,MAAM,SAAS,CAAA;IAChB,OAAO,EAAE,WAAW,EAAE,wCAAqB;IAG3C,MAAM,OAAO,mBAAoB,SAAQ,UAAU;QAEjD,EAAE,EAAE,MAAM,CAAA;QAGV,aAAa,EAAE,MAAM,CAAA;QAGrB,MAAM,EAAE,MAAM,CAAA;QAGd,MAAM,EAAE,MAAM,CAAA;QAGd,UAAU,EAAE,SAAS,CAAA;QAIrB,WAAW,EAAE,WAAW,CAAA;KACzB;;;IC/BD,OAAO,EAAE,UAAU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