refactor auth/media entities to separate files, suppress node:sqlite warning

This commit is contained in:
dswbx
2025-07-02 16:36:06 +02:00
parent 80034b9b0a
commit 45138c25f0
8 changed files with 104 additions and 89 deletions

View File

@@ -0,0 +1,14 @@
import { boolean, datetime, json, number, text } from "data/prototype";
export const mediaFields = {
path: text().required(),
folder: boolean({ default_value: false, hidden: true, fillable: ["create"] }),
mime_type: text(),
size: number(),
scope: text({ hidden: true, fillable: ["create"] }),
etag: text(),
modified_at: datetime(),
reference: text(),
entity_id: number(),
metadata: json(),
};