chore: src/modules/space/entity/info.ts

This commit is contained in:
2026-07-01 17:57:14 +08:00
parent 2d15e0923d
commit 6d4b3aef6d
+33
View File
@@ -0,0 +1,33 @@
import { BaseEntity } from '../../base/entity/base';
import { Column, Index, Entity } from 'typeorm';
/**
* 文件空间信息
*/
@Entity('space_info')
export class SpaceInfoEntity extends BaseEntity {
@Column({ comment: '地址' })
url: string;
@Column({ comment: '类型' })
type: string;
@Column({ comment: '分类ID', nullable: true })
classifyId: number;
@Index()
@Column({ comment: '文件id' })
fileId: string;
@Column({ comment: '文件名' })
name: string;
@Column({ comment: '文件大小' })
size: number;
@Column({ comment: '文档版本', default: 1 })
version: number;
@Column({ comment: '文件位置' })
key: string;
}