move itemuses to a seperate table, finish !stats implementation

This commit is contained in:
2025-04-05 19:27:12 +02:00
parent 5b5886e3a1
commit 3bd2cb1038
4 changed files with 108 additions and 19 deletions

View File

@@ -14,6 +14,81 @@ migrate(app => {
app.save(record)
const data = [
{
"id": "pbc_279239694",
"listRule": null,
"viewRule": null,
"createRule": null,
"updateRule": null,
"deleteRule": null,
"name": "itemuses",
"type": "base",
"fields": [
{
"autogeneratePattern": "[a-z0-9]{15}",
"hidden": false,
"id": "text3208210256",
"max": 15,
"min": 15,
"name": "id",
"pattern": "^[a-z0-9]+$",
"presentable": false,
"primaryKey": true,
"required": true,
"system": true,
"type": "text"
},
{
"autogeneratePattern": "",
"hidden": false,
"id": "text1579384326",
"max": 0,
"min": 0,
"name": "name",
"pattern": "",
"presentable": false,
"primaryKey": false,
"required": false,
"system": false,
"type": "text"
},
{
"cascadeDelete": false,
"collectionId": "pbc_3754236674",
"hidden": false,
"id": "relation1542800728",
"maxSelect": 1,
"minSelect": 0,
"name": "field",
"presentable": false,
"required": false,
"system": false,
"type": "relation"
},
{
"hidden": false,
"id": "autodate2990389176",
"name": "created",
"onCreate": true,
"onUpdate": false,
"presentable": false,
"system": false,
"type": "autodate"
},
{
"hidden": false,
"id": "autodate3332085495",
"name": "updated",
"onCreate": true,
"onUpdate": true,
"presentable": false,
"system": false,
"type": "autodate"
}
],
"indexes": [],
"system": false
},
{
"id": "pbc_1170220047",
"listRule": "",
@@ -241,16 +316,6 @@ migrate(app => {
"system": false,
"type": "json"
},
{
"hidden": false,
"id": "json1357546519",
"maxSize": 0,
"name": "itemuses",
"presentable": false,
"required": false,
"system": false,
"type": "json"
},
{
"hidden": false,
"id": "number2901680126",