Spaces:
Sleeping
Sleeping
Download src/modules/document-generation/entities/generated-document.entity.ts from mahrooshishaq/SmartfolioBackend: direct link, hf CLI and curl.
- Browser
- Download file 903 Bytes
-
https://huggingface.co/spaces/mahrooshishaq/SmartfolioBackend/resolve/main/src/modules/document-generation/entities/generated-document.entity.ts
- Command line
-
hf download hf://spaces/mahrooshishaq/SmartfolioBackend/src/modules/document-generation/entities/generated-document.entity.ts
-
curl -L -o generated-document.entity.ts https://huggingface.co/spaces/mahrooshishaq/SmartfolioBackend/resolve/main/src/modules/document-generation/entities/generated-document.entity.ts
903 Bytes
| import { | |
| Entity, | |
| PrimaryGeneratedColumn, | |
| Column, | |
| CreateDateColumn, | |
| ManyToOne, | |
| JoinColumn, | |
| } from 'typeorm'; | |
| import { User } from '../../users/user.entity'; | |
| export enum DocumentType { | |
| COVER_LETTER = 'cover_letter', | |
| PROFESSIONAL_EMAIL = 'professional_email', | |
| UNIVERSITY_STATEMENT = 'university_statement', | |
| } | |
| ('generated_documents') | |
| export class GeneratedDocument { | |
| ('uuid') | |
| id: string; | |
| ({ type: 'uuid' }) | |
| userId: string; | |
| (() => User, { onDelete: 'CASCADE' }) | |
| ({ name: 'userId' }) | |
| user: User; | |
| ({ type: 'enum', enum: DocumentType }) | |
| documentType: DocumentType; | |
| ({ type: 'jsonb' }) | |
| formData: Record<string, any>; | |
| ({ type: 'text' }) | |
| content: string; | |
| ({ type: 'varchar', length: 200, nullable: true }) | |
| title: string | null; | |
| () | |
| createdAt: Date; | |
| } | |