mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 23:40:56 +00:00
27 lines
696 B
TypeScript
27 lines
696 B
TypeScript
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;
|
|
}
|