diff --git a/002_source/pocketbase/pb_hooks/seed/040_QuizCRCategories.js b/002_source/pocketbase/pb_hooks/seed/040_QuizCRCategories.js index d36a94f..f2d4f6a 100644 --- a/002_source/pocketbase/pb_hooks/seed/040_QuizCRCategories.js +++ b/002_source/pocketbase/pb_hooks/seed/040_QuizCRCategories.js @@ -5,19 +5,19 @@ module.exports = ($app) => { const id_c = "2".padStart(15, 0); //id_connectives const getId = (id) => id.padStart(15, 0); let row_array = [ - [getId("1"), "news (connect)", getAsset("ci_news.jpg"), 1, {}, "visible"], - [getId("2"), "sports (connect)", getAsset("ci_sports.jpg"), 2, {}, "visible"], - [getId("3"), "technology (connect)", getAsset("ci_technology.jpg"), 3, {}, "visible"], - [getId("4"), "art (connect)", getAsset("ci_art.jpg"), 4, {}, "visible"], - [getId("5"), "basic (connect)", getAsset("ci_basic.jpg"), 5, {}, "visible"], - [getId("6"), "nature (connect)", getAsset("ci_nature.jpg"), 6, {}, "visible"], - [getId("7"), "workplace (connect)", getAsset("ci_workplace.jpg"), 7, {}, "visible"], - [getId("8"), "workplace (connect)", getAsset("ci_workplace.jpg"), 8, {}, "visible"], - [getId("99"), "test hidden (connect)", getAsset("ci_workplace.jpg"), 9, {}, "hidden"], + [getId("1"), "news (connective)", getAsset("ci_news.jpg"), 1, {}, "visible"], + [getId("2"), "sports (connective)", getAsset("ci_sports.jpg"), 2, {}, "visible"], + [getId("3"), "technology (connective)", getAsset("ci_technology.jpg"), 3, {}, "visible"], + [getId("4"), "art (connective)", getAsset("ci_art.jpg"), 4, {}, "visible"], + [getId("5"), "basic (connective)", getAsset("ci_basic.jpg"), 5, {}, "visible"], + [getId("6"), "nature (connective)", getAsset("ci_nature.jpg"), 6, {}, "visible"], + [getId("7"), "workplace (connective)", getAsset("ci_workplace.jpg"), 7, {}, "visible"], + [getId("8"), "workplace (connective)", getAsset("ci_workplace.jpg"), 8, {}, "visible"], + [getId("99"), "test hidden (connective)", getAsset("ci_workplace.jpg"), 9, {}, "hidden"], ]; - dirtyTruncateTable("QuizMFCategories"); + dirtyTruncateTable("QuizCRCategories"); - let lt_collection = $app.findCollectionByNameOrId("QuizMFCategories"); + let lt_collection = $app.findCollectionByNameOrId("QuizCRCategories"); for (let i = 0; i < row_array.length; i++) { let lesson_type = row_array[i]; @@ -33,7 +33,7 @@ module.exports = ($app) => { $app.save(record); } - console.log(`030_QuizMFCategories done`); + console.log(`030_QuizCRCategories done`); }; const dirtyTruncateTable = (COLLECTION_NAME) => { diff --git a/002_source/pocketbase/pb_hooks/seed/schema.json b/002_source/pocketbase/pb_hooks/seed/schema.json index 95b7cd5..2148c38 100644 --- a/002_source/pocketbase/pb_hooks/seed/schema.json +++ b/002_source/pocketbase/pb_hooks/seed/schema.json @@ -1891,6 +1891,48 @@ "presentable": false, "system": false, "type": "autodate" + }, + { + "autogeneratePattern": "", + "hidden": false, + "id": "text2058414169", + "max": 0, + "min": 0, + "name": "visible", + "pattern": "", + "presentable": false, + "primaryKey": false, + "required": false, + "system": false, + "type": "text" + }, + { + "hidden": false, + "id": "file4170105732", + "maxSelect": 1, + "maxSize": 0, + "mimeTypes": [], + "name": "sound", + "presentable": false, + "protected": false, + "required": false, + "system": false, + "thumbs": [], + "type": "file" + }, + { + "hidden": false, + "id": "file2034676914", + "maxSelect": 1, + "maxSize": 0, + "mimeTypes": [], + "name": "cat_image", + "presentable": false, + "protected": false, + "required": false, + "system": false, + "thumbs": [], + "type": "file" } ], "indexes": [],