Spaces:
Build error
Build error
| import { | |
| Column, | |
| CreateDateColumn, | |
| type DataSourceOptions, | |
| Entity, | |
| Index, | |
| PrimaryGeneratedColumn, | |
| UpdateDateColumn, | |
| } from 'typeorm'; | |
| import { WorkspaceRelatedEntity } from 'src/engine/workspace-manager/types/workspace-related-entity'; | |
| export type DataSourceType = DataSourceOptions['type']; | |
| // @deprecated - This entity is kept only to preserve the dataSource table. | |
| // All code should use workspace.databaseSchema instead. | |
| ('dataSource') | |
| ('IDX_DATA_SOURCE_WORKSPACE_ID_CREATED_AT', ['workspaceId', 'createdAt']) | |
| export class DataSourceEntity extends WorkspaceRelatedEntity { | |
| ('uuid') | |
| id: string; | |
| ({ nullable: true }) | |
| label: string; | |
| ({ nullable: true }) | |
| url: string; | |
| ({ nullable: true }) | |
| schema: string; | |
| ({ type: 'enum', enum: ['postgres'], default: 'postgres' }) | |
| type: DataSourceType; | |
| ({ default: false }) | |
| isRemote: boolean; | |
| ({ type: 'timestamptz' }) | |
| createdAt: Date; | |
| ({ type: 'timestamptz' }) | |
| updatedAt: Date; | |
| } | |