{
  "board": [
    {
      "action" : "add",
      "api" : "/api/file/add",
      "class" : "file",
      "description" : "Add",
      "filters" : [],
      "kind" : 2,
      "path" : "",
      "schema" : "file",
      "selects" : [
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "_id",
            "select" : true
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "valid",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "createAt",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "createBy",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "updateAt",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "updateBy",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "fileId",
            "select" : true
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "length",
            "select" : true
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "type",
            "select" : true
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "contentType",
            "select" : true
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "description",
            "select" : true
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "path",
            "select" : true
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "kind",
            "select" : false
        }, 
        {
            "fields" : [],
            "key" : "data",
            "select" : false
        }, 
        {
            "fields" : [],
            "key" : "chunkSize",
            "select" : false
        }, 
        {
            "fields" : [],
            "key" : "filename",
            "select" : false
        }, 
        {
            "key" : "md5",
            "select" : false,
            "fields" : []
        }
    ],
      "sorts" : [],
      "type" : 1,
      "version" : "",
      "valid" : 1,
      "script" : ""
  },
    {
      "action" : "get",
      "api" : "/api/file/get",
      "class" : "file",
      "description" : "Get",
      "filters" : [],
      "kind" : 2,
      "path" : "",
      "schema" : "file",
      "selects" : [ 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "_id",
              "select" : true
          }, 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "contentType",
              "select" : true
          }, 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "createAt",
              "select" : true
          }, 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "createBy",
              "select" : true
          }, 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "description",
              "select" : true
          }, 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "fileId",
              "select" : true
          }, 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "kind",
              "select" : true
          }, 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "length",
              "select" : true
          }, 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "path",
              "select" : true
          }, 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "type",
              "select" : true
          }, 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "updateAt",
              "select" : true
          }, 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "updateBy",
              "select" : true
          }, 
          {
              "alias" : "",
              "fields" : [],
              "format" : "",
              "key" : "valid",
              "select" : true
          }, 
          {
              "fields" : [],
              "key" : "data",
              "select" : false
          }, 
          {
              "fields" : [],
              "key" : "chunkSize",
              "select" : false
          }, 
          {
              "fields" : [],
              "key" : "filename",
              "select" : false
          }, 
          {
              "key" : "md5",
              "select" : false,
              "fields" : []
          }
      ],
      "sorts" : [],
      "type" : 6,
      "version" : "",
      "valid" : 1,
      "createBy" : "000000000000000000000001",
      "updateBy" : "000000000000000000000001",
      "script" : ""
  },
  {
    "action" : "update",
    "api" : "/api/file/update",
    "class" : "file",
    "description" : "Update",
    "filters" : [],
    "kind" : 2,
    "path" : "",
    "schema" : "file",
    "selects" : [ 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "_id",
          "select" : true
      }, 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "valid",
          "select" : false
      }, 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "createAt",
          "select" : false
      }, 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "createBy",
          "select" : false
      }, 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "updateAt",
          "select" : false
      }, 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "updateBy",
          "select" : false
      }, 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "fileId",
          "select" : false
      }, 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "length",
          "select" : true
      }, 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "type",
          "select" : false
      }, 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "contentType",
          "select" : true
      }, 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "description",
          "select" : false
      }, 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "path",
          "select" : false
      }, 
      {
          "alias" : "",
          "fields" : [],
          "format" : "",
          "key" : "kind",
          "select" : false
      }, 
      {
          "fields" : [],
          "key" : "data",
          "select" : false
      }, 
      {
          "fields" : [],
          "key" : "chunkSize",
          "select" : false
      }, 
      {
          "fields" : [],
          "key" : "filename",
          "select" : true
      }, 
      {
          "fields" : [],
          "key" : "md5",
          "select" : false
      }
  ],
    "sorts" : [],
    "type" : 2,
    "version" : "",
    "valid" : 1,
    "script" : ""
},
  {"action" : "remove",
    "api" : "/api/file/remove",
    "class" : "file",
    "description" : "Remove",
    "filters" : [],
    "kind" : 2,
    "path" : "",
    "schema" : "file",
    "selects" : [ 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "_id",
            "select" : true
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "valid",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "createAt",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "createBy",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "updateAt",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "updateBy",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "fileId",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "length",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "type",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "contentType",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "description",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "path",
            "select" : false
        }, 
        {
            "alias" : "",
            "fields" : [],
            "format" : "",
            "key" : "kind",
            "select" : false
        }, 
        {
            "fields" : [],
            "key" : "data",
            "select" : false
        }, 
        {
            "fields" : [],
            "key" : "chunkSize",
            "select" : false
        }, 
        {
            "fields" : [],
            "key" : "filename",
            "select" : false
        }, 
        {
            "key" : "md5",
            "select" : false,
            "fields" : []
        }
    ],
    "sorts" : [],
    "type" : 3,
    "version" : "",
    "valid" : 1,
    "createBy" : "000000000000000000000001",
    "updateBy" : "000000000000000000000001",
    "script" : ""}
  ],
  "struct": [
    {
      "schema": "file",
      "description": "file",
      "parent": "",
      "items": {
        "valid" : {
            "description" : "1:有效 0:无效",
            "name" : "有效标识",
            "reserved" : 1,
            "type" : "Number"
        },
        "contentType" : {
            "default" : "",
            "description" : "文件类型",
            "name" : "类型",
            "reserved" : 2,
            "type" : "String"
        },
        "createBy" : {
            "name" : "创建者",
            "reserved" : 1,
            "type" : "String"
        },
        "fileId" : {
            "type" : "ObjectID",
            "default" : null,
            "description" : "GridFS的ID",
            "name" : "文件ID",
            "reserved" : 2
        },
        "path" : {
            "default" : "",
            "description" : "逻辑路径",
            "name" : "路径",
            "reserved" : 2,
            "type" : "String"
        },
        "type" : {
            "default" : "",
            "description" : "文件分类",
            "name" : "类型",
            "reserved" : 2,
            "type" : "String"
        },
        "updateAt" : {
            "type" : "Date",
            "name" : "更新时间",
            "reserved" : 1
        },
        "updateBy" : {
            "name" : "更新者",
            "reserved" : 1,
            "type" : "String"
        },
        "_id" : {
            "name" : "ID",
            "reserved" : 1,
            "type" : "ObjectID"
        },
        "createAt" : {
            "reserved" : 1,
            "type" : "Date",
            "name" : "创建时间"
        },
        "description" : {
            "default" : "",
            "description" : "",
            "name" : "描述",
            "reserved" : 2,
            "type" : "String"
        },
        "length" : {
            "name" : "大小",
            "reserved" : 2,
            "type" : "Number",
            "default" : null,
            "description" : "文件大小"
        },
        "kind" : {
            "type" : "String",
            "default" : "file",
            "description" : "文件夹 : folder, 文件 : file"
        },
        "data" : {
            "type" : "Object",
            "default" : {},
            "description" : "内容（RDB时使用）"
        },
        "chunkSize" : {
            "type" : "String",
            "default" : "",
            "description" : ""
        },
        "filename" : {
            "type" : "String",
            "default" : "",
            "description" : "文件名"
        },
        "md5" : {
            "type" : "String",
            "default" : "",
            "description" : "md5"
        }
    },
      "kind": 2,
      "lock": 0,
      "version": "",
      "extend": {},
      "public": 1
    }
  ]
}