update database for dlt connector

This commit is contained in:
einhornimmond 2025-06-30 07:23:01 +02:00
parent a867a0eba7
commit 0306fab49a
15 changed files with 6 additions and 29 deletions

View File

@ -16,7 +16,8 @@ import { UserContact } from '../UserContact'
import { UserRole } from '../UserRole'
import { GeometryTransformer } from '../../src/typeorm/GeometryTransformer'
import { Community } from '../Community'
import { DltUser } from '../DltUser'
// removed in current version
import { DltUser } from './DltUser'
@Entity('users', { engine: 'InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci' })
export class User extends BaseEntity {

View File

@ -1 +1 @@
export { DltTransaction } from './0088-merge_dlt_tables/DltTransaction'
export { DltTransaction } from './0089-merge_dlt_tables/DltTransaction'

View File

@ -1 +0,0 @@
export { DltUser } from './0087-add_dlt_users_table/DltUser'

View File

@ -1 +1 @@
export { Transaction } from './0088-merge_dlt_tables/Transaction'
export { Transaction } from './0089-merge_dlt_tables/Transaction'

View File

@ -1 +1 @@
export { TransactionLink } from './0088-merge_dlt_tables/TransactionLink'
export { TransactionLink } from './0089-merge_dlt_tables/TransactionLink'

View File

@ -1 +1 @@
export { User } from './0088-merge_dlt_tables/User'
export { User } from './0089-merge_dlt_tables/User'

View File

@ -1,23 +0,0 @@
import { DltUser } from '../entity/DltUser'
import { AbstractLoggingView } from './AbstractLogging.view'
import { UserLoggingView } from './UserLogging.view'
export class DltUserLoggingView extends AbstractLoggingView {
public constructor(private self: DltUser) {
super()
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
public toJSON(): any {
return {
id: this.self.id,
user: this.self.user
? new UserLoggingView(this.self.user).toJSON()
: { id: this.self.userId },
messageId: this.self.messageId,
verified: this.self.verified,
createdAt: this.dateToString(this.self.createdAt),
verifiedAt: this.dateToString(this.self.verifiedAt),
}
}
}