wangzhibo
2026-07-16 bac4362a0b7726d38a23d38f0d7913f2c2bab262
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
}