mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
56 lines
711 B
TypeScript
56 lines
711 B
TypeScript
import {
|
|
IConnections,
|
|
IDataObject,
|
|
INode,
|
|
IWorkflowSettings,
|
|
} from 'n8n-workflow';
|
|
|
|
import {
|
|
IWorkflowDb,
|
|
} from '../../';
|
|
|
|
import {
|
|
Column,
|
|
Entity,
|
|
PrimaryGeneratedColumn,
|
|
} from 'typeorm';
|
|
|
|
@Entity()
|
|
export class WorkflowEntity implements IWorkflowDb {
|
|
|
|
@PrimaryGeneratedColumn()
|
|
id: number;
|
|
|
|
@Column({
|
|
length: 128,
|
|
})
|
|
name: string;
|
|
|
|
@Column()
|
|
active: boolean;
|
|
|
|
@Column('simple-json')
|
|
nodes: INode[];
|
|
|
|
@Column('simple-json')
|
|
connections: IConnections;
|
|
|
|
@Column()
|
|
createdAt: Date;
|
|
|
|
@Column()
|
|
updatedAt: Date;
|
|
|
|
@Column({
|
|
type: 'simple-json',
|
|
nullable: true,
|
|
})
|
|
settings?: IWorkflowSettings;
|
|
|
|
@Column({
|
|
type: 'simple-json',
|
|
nullable: true,
|
|
})
|
|
staticData?: IDataObject;
|
|
}
|