From 89f91ec2a01e159e7453d28bf2f70875cf4076b2 Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Mon, 12 May 2025 14:03:35 +0800 Subject: [PATCH] ```update Notifications table schema by removing 'author' text field, adding 'author' relation, 'content', 'company', and 'link' fields, and sync changes in schema.dbml, schema.json, and pb_hooks/seed/schema.json``` --- .../Requirements/REQ0006/schema.dbml | 7 ++- .../Requirements/REQ0006/schema.json | 55 +++++++++++++++---- 002_source/pocketbase/.gitignore | 1 + .../pocketbase/pb_hooks/seed/schema.json | 11 ++++ 4 files changed, 62 insertions(+), 12 deletions(-) diff --git a/001_documentation/Requirements/REQ0006/schema.dbml b/001_documentation/Requirements/REQ0006/schema.dbml index 2c5167e..5697477 100644 --- a/001_documentation/Requirements/REQ0006/schema.dbml +++ b/001_documentation/Requirements/REQ0006/schema.dbml @@ -1,4 +1,4 @@ -// Generated at: 2025-05-11T08:58:29.867Z +// Generated at: 2025-05-12T06:02:53.613Z // @@ -114,7 +114,6 @@ Table Notifications { id text [pk, not null] read boolean type text - author text job text description text NOTI_ID text @@ -122,6 +121,10 @@ Table Notifications { updated datetime to_user_id integer [ref: > UserMetas.id] // relation704048736 from_user_id integer [ref: > UserMetas.id] // relation556806202 + author integer [ref: > UserMetas.id] // relation3182418120 + content text + company text + link varchar } // diff --git a/001_documentation/Requirements/REQ0006/schema.json b/001_documentation/Requirements/REQ0006/schema.json index 2dcd756..10c74fc 100644 --- a/001_documentation/Requirements/REQ0006/schema.json +++ b/001_documentation/Requirements/REQ0006/schema.json @@ -1057,16 +1057,6 @@ "system": false, "type": "text" }, - { - "hidden": false, - "id": "json3182418120", - "maxSize": 0, - "name": "author", - "presentable": false, - "required": false, - "system": false, - "type": "json" - }, { "hidden": false, "id": "json4225294584", @@ -1150,6 +1140,51 @@ "required": false, "system": false, "type": "relation" + }, + { + "cascadeDelete": false, + "collectionId": "pbc_1305841361", + "hidden": false, + "id": "relation3182418120", + "maxSelect": 1, + "minSelect": 0, + "name": "author", + "presentable": false, + "required": false, + "system": false, + "type": "relation" + }, + { + "convertURLs": false, + "hidden": false, + "id": "editor4274335913", + "maxSize": 0, + "name": "content", + "presentable": false, + "required": false, + "system": false, + "type": "editor" + }, + { + "hidden": false, + "id": "json1337919823", + "maxSize": 0, + "name": "company", + "presentable": false, + "required": false, + "system": false, + "type": "json" + }, + { + "exceptDomains": null, + "hidden": false, + "id": "url917281265", + "name": "link", + "onlyDomains": null, + "presentable": false, + "required": false, + "system": false, + "type": "url" } ], "indexes": [], diff --git a/002_source/pocketbase/.gitignore b/002_source/pocketbase/.gitignore index b0fc6d9..70b538b 100644 --- a/002_source/pocketbase/.gitignore +++ b/002_source/pocketbase/.gitignore @@ -1,2 +1,3 @@ # volumes +pb_migrations diff --git a/002_source/pocketbase/pb_hooks/seed/schema.json b/002_source/pocketbase/pb_hooks/seed/schema.json index e1e953b..10c74fc 100644 --- a/002_source/pocketbase/pb_hooks/seed/schema.json +++ b/002_source/pocketbase/pb_hooks/seed/schema.json @@ -1174,6 +1174,17 @@ "required": false, "system": false, "type": "json" + }, + { + "exceptDomains": null, + "hidden": false, + "id": "url917281265", + "name": "link", + "onlyDomains": null, + "presentable": false, + "required": false, + "system": false, + "type": "url" } ], "indexes": [],