* refactor: use consistent folder structure across workflow, core, and cli * setup typescript project references across workflow, core, and cli
21 lines
385 B
TypeScript
21 lines
385 B
TypeScript
import type { IDataObject } from 'n8n-workflow';
|
|
import { Column, Entity, PrimaryColumn } from 'typeorm';
|
|
|
|
export interface ISettingsDb {
|
|
key: string;
|
|
value: string | boolean | IDataObject | number;
|
|
loadOnStartup: boolean;
|
|
}
|
|
|
|
@Entity()
|
|
export class Settings implements ISettingsDb {
|
|
@PrimaryColumn()
|
|
key: string;
|
|
|
|
@Column()
|
|
value: string;
|
|
|
|
@Column()
|
|
loadOnStartup: boolean;
|
|
}
|