mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Standardize filename casing for controllers and databases (no-changelog) (#10564)
This commit is contained in:
25
packages/cli/src/databases/entities/project.ts
Normal file
25
packages/cli/src/databases/entities/project.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Column, Entity, OneToMany } from '@n8n/typeorm';
|
||||
import { WithTimestampsAndStringId } from './abstract-entity';
|
||||
import type { ProjectRelation } from './project-relation';
|
||||
import type { SharedCredentials } from './shared-credentials';
|
||||
import type { SharedWorkflow } from './shared-workflow';
|
||||
|
||||
export type ProjectType = 'personal' | 'team';
|
||||
|
||||
@Entity()
|
||||
export class Project extends WithTimestampsAndStringId {
|
||||
@Column({ length: 255 })
|
||||
name: string;
|
||||
|
||||
@Column({ length: 36 })
|
||||
type: ProjectType;
|
||||
|
||||
@OneToMany('ProjectRelation', 'project')
|
||||
projectRelations: ProjectRelation[];
|
||||
|
||||
@OneToMany('SharedCredentials', 'project')
|
||||
sharedCredentials: SharedCredentials[];
|
||||
|
||||
@OneToMany('SharedWorkflow', 'project')
|
||||
sharedWorkflows: SharedWorkflow[];
|
||||
}
|
||||
Reference in New Issue
Block a user