瀏覽代碼

Add sort field to boards model

boeserwolf 5 年之前
父節點
當前提交
2400c91013
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      models/boards.js

+ 8 - 0
models/boards.js

@@ -493,6 +493,14 @@ Boards.attachSchema(
       type: String,
       defaultValue: 'board',
     },
+    sort: {
+      /**
+       * Sort value
+       */
+      type: Number,
+      decimal: true,
+      defaultValue: -1,
+    },
   }),
 );