monorepo/apps/api/src/database/schema/file.prisma

23 lines
447 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

model File {
/// 文件的唯一标识符
id String @id @default(uuid())
/// 文件创建的时间戳
createdAt DateTime @default(now())
/// 文件的名称
fileName String
/// 文件的类型例如pdf, docx
fileType String
/// 文件的大小(单位:字节)
fileSize Int
/// 创建文件的用户ID
userId String
/// 文件在存储系统中的路径
filePath String
}