mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Port over project request payloads to DTOs (#12528)
This commit is contained in:
committed by
GitHub
parent
44679b42aa
commit
5f1adefca7
@@ -1,3 +1,4 @@
|
||||
import { ProjectIcon, ProjectType } from '@n8n/api-types';
|
||||
import { Column, Entity, OneToMany } from '@n8n/typeorm';
|
||||
|
||||
import { WithTimestampsAndStringId } from './abstract-entity';
|
||||
@@ -5,15 +6,12 @@ import type { ProjectRelation } from './project-relation';
|
||||
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 {
|
||||
@Column({ length: 255 })
|
||||
name: string;
|
||||
|
||||
@Column({ length: 36 })
|
||||
@Column({ type: 'varchar', length: 36 })
|
||||
type: ProjectType;
|
||||
|
||||
@Column({ type: 'json', nullable: true })
|
||||
|
||||
Reference in New Issue
Block a user