mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-08-23 20:12:31 +02:00
43 lines
732 B
TypeScript
43 lines
732 B
TypeScript
import { Column, Entity, PrimaryGeneratedColumn } from '@n8n/typeorm';
|
|
import { datetimeColumnType } from './AbstractEntity';
|
|
import { AuthProviderType } from './AuthIdentity';
|
|
|
|
export type RunningMode = 'dry' | 'live';
|
|
export type SyncStatus = 'success' | 'error';
|
|
|
|
@Entity()
|
|
export class AuthProviderSyncHistory {
|
|
@PrimaryGeneratedColumn()
|
|
id: number;
|
|
|
|
@Column('text')
|
|
providerType: AuthProviderType;
|
|
|
|
@Column('text')
|
|
runMode: RunningMode;
|
|
|
|
@Column('text')
|
|
status: SyncStatus;
|
|
|
|
@Column(datetimeColumnType)
|
|
startedAt: Date;
|
|
|
|
@Column(datetimeColumnType)
|
|
endedAt: Date;
|
|
|
|
@Column()
|
|
scanned: number;
|
|
|
|
@Column()
|
|
created: number;
|
|
|
|
@Column()
|
|
updated: number;
|
|
|
|
@Column()
|
|
disabled: number;
|
|
|
|
@Column()
|
|
error: string;
|
|
}
|