fix: Introduce HooksService (#8962)

This commit is contained in:
Ricardo Espinoza
2024-06-11 07:28:45 -04:00
committed by GitHub
parent 4918ac81de
commit dda7901398
5 changed files with 285 additions and 17 deletions

View File

@@ -1,16 +1,8 @@
import { Column, Entity, PrimaryColumn } from '@n8n/typeorm';
import { Column, Entity } from '@n8n/typeorm';
import { User } from './User';
@Entity({ name: 'user' })
export class AuthUser {
@PrimaryColumn({ type: 'uuid', update: false })
id: string;
@Column({ type: String, update: false })
email: string;
@Column({ type: Boolean, default: false })
mfaEnabled: boolean;
export class AuthUser extends User {
@Column({ type: String, nullable: true })
mfaSecret?: string | null;