``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``

This commit is contained in:
louiscklaw
2025-05-12 14:03:35 +08:00
parent 1441863dcd
commit 89f91ec2a0
4 changed files with 62 additions and 12 deletions

View File

@@ -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] id text [pk, not null]
read boolean read boolean
type text type text
author text
job text job text
description text description text
NOTI_ID text NOTI_ID text
@@ -122,6 +121,10 @@ Table Notifications {
updated datetime updated datetime
to_user_id integer [ref: > UserMetas.id] // relation704048736 to_user_id integer [ref: > UserMetas.id] // relation704048736
from_user_id integer [ref: > UserMetas.id] // relation556806202 from_user_id integer [ref: > UserMetas.id] // relation556806202
author integer [ref: > UserMetas.id] // relation3182418120
content text
company text
link varchar
} }
// //

View File

@@ -1057,16 +1057,6 @@
"system": false, "system": false,
"type": "text" "type": "text"
}, },
{
"hidden": false,
"id": "json3182418120",
"maxSize": 0,
"name": "author",
"presentable": false,
"required": false,
"system": false,
"type": "json"
},
{ {
"hidden": false, "hidden": false,
"id": "json4225294584", "id": "json4225294584",
@@ -1150,6 +1140,51 @@
"required": false, "required": false,
"system": false, "system": false,
"type": "relation" "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": [], "indexes": [],

View File

@@ -1,2 +1,3 @@
# #
volumes volumes
pb_migrations

View File

@@ -1174,6 +1174,17 @@
"required": false, "required": false,
"system": false, "system": false,
"type": "json" "type": "json"
},
{
"exceptDomains": null,
"hidden": false,
"id": "url917281265",
"name": "link",
"onlyDomains": null,
"presentable": false,
"required": false,
"system": false,
"type": "url"
} }
], ],
"indexes": [], "indexes": [],