import { BaseEntity } from "@edr/api-common"; import { Column, Entity } from "typeorm"; @Entity({ schema: "freight", name: "files" }) export class FileRecord extends BaseEntity { @Column({ name: "resource_id", type: "uuid" }) resourceId!: string; @Column({ name: "resource", type: "varchar", length: 100 }) resource!: string; @Column({ name: "code", type: "varchar", length: 100 }) code!: string; @Column({ name: "name", type: "varchar", length: 500 }) name!: string; @Column({ name: "url", type: "text" }) url!: string; @Column({ name: "size", type: "integer" }) size!: number; @Column({ name: "mime_type", type: "varchar", length: 255 }) mimeType!: string; }