@rubytech/create-maxy 1.0.798 → 1.0.799
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 +1 -1
- package/payload/platform/neo4j/schema.cypher +34 -0
- package/payload/server/chunk-SBHI2NMF.js +9910 -0
- package/payload/server/chunk-WHF6YXJ5.js +3456 -0
- package/payload/server/client-pool-4YDRTKAT.js +29 -0
- package/payload/server/maxy-edge.js +2 -2
- package/payload/server/public/assets/{admin-Cz8hUAqx.js → admin-C0lKk6WM.js} +1 -1
- package/payload/server/public/index.html +1 -1
- package/payload/server/server.js +90 -33
package/package.json
CHANGED
|
@@ -919,6 +919,40 @@ FOR (c:Component) ON (c.messageId);
|
|
|
919
919
|
CREATE INDEX component_account IF NOT EXISTS
|
|
920
920
|
FOR (c:Component) ON (c.accountId);
|
|
921
921
|
|
|
922
|
+
// ----------------------------------------------------------
|
|
923
|
+
// :Attachment — Task 854. Sibling node hung off a :Message via
|
|
924
|
+
// [:HAS_ATTACHMENT] capturing user-side file uploads (image, pdf,
|
|
925
|
+
// text/markdown/csv/html, calendar, zip; see attachments.ts
|
|
926
|
+
// SUPPORTED_MIME_TYPES). Mirrors :Component (Task 815).
|
|
927
|
+
//
|
|
928
|
+
// Properties:
|
|
929
|
+
// attachmentId — UUID assigned at storeAttachment time; matches
|
|
930
|
+
// the on-disk directory + Neo4j node id.
|
|
931
|
+
// conversationId — denormalised for filtered scans + cascade delete.
|
|
932
|
+
// accountId — account-isolation. Reads MUST scope by this.
|
|
933
|
+
// messageId — back-pointer to parent :Message.
|
|
934
|
+
// filename — original upload name (kept for chip render).
|
|
935
|
+
// mimeType — validated MIME (assertSupportedMime).
|
|
936
|
+
// sizeBytes — original byte size at upload.
|
|
937
|
+
// storagePath — absolute on-disk path. Server-only — never
|
|
938
|
+
// surfaced to the client (chip click resolves
|
|
939
|
+
// via attachmentId, not path).
|
|
940
|
+
// ordinal — upload-order index within the parent turn (0-based).
|
|
941
|
+
// Reader uses it to re-render chips in upload order.
|
|
942
|
+
// createdAt — datetime when persisted.
|
|
943
|
+
//
|
|
944
|
+
// (:Message)-[:HAS_ATTACHMENT]->(:Attachment)
|
|
945
|
+
// ----------------------------------------------------------
|
|
946
|
+
|
|
947
|
+
CREATE CONSTRAINT attachment_id_unique IF NOT EXISTS
|
|
948
|
+
FOR (a:Attachment) REQUIRE a.attachmentId IS UNIQUE;
|
|
949
|
+
|
|
950
|
+
CREATE INDEX attachment_message IF NOT EXISTS
|
|
951
|
+
FOR (a:Attachment) ON (a.messageId);
|
|
952
|
+
|
|
953
|
+
CREATE INDEX attachment_account IF NOT EXISTS
|
|
954
|
+
FOR (a:Attachment) ON (a.accountId);
|
|
955
|
+
|
|
922
956
|
// ----------------------------------------------------------
|
|
923
957
|
// :Trashed — Task 576 soft-delete primitive.
|
|
924
958
|
//
|