mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
56 lines
710 B
TypeScript
56 lines
710 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;
|
|
}
|