Spaces:
Sleeping
Sleeping
Download src/modules/template/entities/template.entity.ts from jinksQspider/openWa: direct link, hf CLI and curl.
- Browser
- Download file 792 Bytes
-
https://huggingface.co/spaces/jinksQspider/openWa/resolve/main/src/modules/template/entities/template.entity.ts
- Command line
-
hf download hf://spaces/jinksQspider/openWa/src/modules/template/entities/template.entity.ts
-
curl -L -o template.entity.ts https://huggingface.co/spaces/jinksQspider/openWa/resolve/main/src/modules/template/entities/template.entity.ts
792 Bytes
| import { | |
| Entity, | |
| Column, | |
| PrimaryGeneratedColumn, | |
| CreateDateColumn, | |
| UpdateDateColumn, | |
| ManyToOne, | |
| JoinColumn, | |
| } from 'typeorm'; | |
| import { Session } from '../../session/entities/session.entity'; | |
| ('templates') | |
| export class Template { | |
| ('uuid') | |
| id: string; | |
| ({ type: 'uuid' }) | |
| sessionId: string; | |
| (() => Session, { onDelete: 'CASCADE' }) | |
| ({ name: 'sessionId' }) | |
| session: Session; | |
| ({ type: 'varchar', length: 100 }) | |
| name: string; | |
| ({ type: 'text' }) | |
| body: string; | |
| ({ type: 'text', nullable: true }) | |
| header: string | null; | |
| ({ type: 'text', nullable: true }) | |
| footer: string | null; | |
| () | |
| createdAt: Date; | |
| () | |
| updatedAt: Date; | |
| } | |