mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat(editor): Add support for project icons (#12349)
This commit is contained in:
committed by
GitHub
parent
7ea6c8b144
commit
9117718cc9
@@ -6,6 +6,7 @@ import type { SharedCredentials } from './shared-credentials';
|
||||
import type { SharedWorkflow } from './shared-workflow';
|
||||
|
||||
export type ProjectType = 'personal' | 'team';
|
||||
export type ProjectIcon = { type: 'emoji' | 'icon'; value: string } | null;
|
||||
|
||||
@Entity()
|
||||
export class Project extends WithTimestampsAndStringId {
|
||||
@@ -15,6 +16,9 @@ export class Project extends WithTimestampsAndStringId {
|
||||
@Column({ length: 36 })
|
||||
type: ProjectType;
|
||||
|
||||
@Column({ type: 'json', nullable: true })
|
||||
icon: ProjectIcon;
|
||||
|
||||
@OneToMany('ProjectRelation', 'project')
|
||||
projectRelations: ProjectRelation[];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user