@varaos/db 1.1.16 → 1.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varaos/db",
3
- "version": "1.1.16",
3
+ "version": "1.1.17",
4
4
  "private": false,
5
5
  "main": "index.js",
6
6
  "files": [
@@ -0,0 +1,3 @@
1
+ -- AlterTable
2
+ ALTER TABLE "public"."UserFile" ADD COLUMN "checksum" TEXT,
3
+ ADD COLUMN "metadata" JSONB;
@@ -138,6 +138,9 @@ model UserFile {
138
138
  mimeType String
139
139
  category String // avatar | memory | export | attachment
140
140
 
141
+ checksum String? // sha256 or md5 for integrity verification
142
+ metadata Json?
143
+
141
144
  createdAt DateTime @default(now())
142
145
 
143
146
  user User @relation(fields: [userId], references: [id], onDelete: Cascade)