Add sync front component (#17748)
## Context Allow twenty apps to sync front components
This commit is contained in:
+19
-1
@@ -9,13 +9,31 @@ import {
|
||||
import { SyncableEntity } from 'src/engine/workspace-manager/types/syncable-entity.interface';
|
||||
|
||||
@Entity('frontComponent')
|
||||
export class FrontComponentEntity extends SyncableEntity {
|
||||
export class FrontComponentEntity
|
||||
extends SyncableEntity
|
||||
implements Required<FrontComponentEntity>
|
||||
{
|
||||
@PrimaryGeneratedColumn('uuid')
|
||||
id: string;
|
||||
|
||||
@Column({ nullable: false })
|
||||
name: string;
|
||||
|
||||
@Column({ nullable: true, type: 'varchar' })
|
||||
description: string | null;
|
||||
|
||||
@Column({ nullable: false })
|
||||
sourceComponentPath: string;
|
||||
|
||||
@Column({ nullable: false })
|
||||
builtComponentPath: string;
|
||||
|
||||
@Column({ nullable: false })
|
||||
componentName: string;
|
||||
|
||||
@Column({ nullable: false })
|
||||
builtComponentChecksum: string;
|
||||
|
||||
@CreateDateColumn({ type: 'timestamptz' })
|
||||
createdAt: Date;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user