feat(editor): Add support for project icons (#12349)

This commit is contained in:
Milorad FIlipović
2024-12-27 19:00:40 +01:00
committed by GitHub
parent 7ea6c8b144
commit 9117718cc9
43 changed files with 962 additions and 76 deletions

View File

@@ -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[];