Commit ce1ffe6a authored by liming's avatar liming

增加课程相关数据表

parent 7da79aab
...@@ -23572,8 +23572,8 @@ ...@@ -23572,8 +23572,8 @@
}, },
{ {
"objectType": "Table_MYSQL", "objectType": "Table_MYSQL",
"name": "course_item", "name": "course_record",
"comment": "课程章节", "comment": "课程记录",
"engine": "InnoDB", "engine": "InnoDB",
"characterSet": "utf8mb4", "characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci", "collation": "utf8mb4_0900_ai_ci",
...@@ -23648,35 +23648,35 @@ ...@@ -23648,35 +23648,35 @@
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "name", "name": "course_id",
"type": "varchar", "type": "bigint",
"length": 100, "length": -2147483648,
"decimals": -2147483648, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
"isBinary": false, "isBinary": false,
"charset": "utf8mb4", "charset": "",
"collation": "utf8mb4_0900_ai_ci", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Null", "defaultType": "Others",
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "章节名称", "comment": "课程id",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "name" "oldName": "course_id"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "target_type", "name": "course_name",
"type": "int", "type": "varchar",
"length": -2147483648, "length": 255,
"decimals": -2147483648, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
...@@ -23689,19 +23689,19 @@ ...@@ -23689,19 +23689,19 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "指标类型 1:ftp 2:踏频 3:速度", "comment": "课程名称",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "target_type" "oldName": "course_name"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "target_value_type", "name": "player_id",
"type": "int", "type": "bigint",
"length": -2147483648, "length": -2147483648,
"decimals": -2147483648, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
...@@ -23711,25 +23711,25 @@ ...@@ -23711,25 +23711,25 @@
"charset": "", "charset": "",
"collation": "", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Others", "defaultType": "Null",
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "目标值类型", "comment": "用户id",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "target_value_type" "oldName": "player_id"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "target_value", "name": "map",
"type": "int", "type": "varchar",
"length": -2147483648, "length": 255,
"decimals": -2147483648, "decimals": 0,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -23741,21 +23741,21 @@ ...@@ -23741,21 +23741,21 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "目标值", "comment": "地图名称",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "target_value" "oldName": "map"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "allowable_deviation", "name": "path",
"type": "decimal", "type": "varchar",
"length": 1, "length": 255,
"decimals": 2, "decimals": 0,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -23767,14 +23767,14 @@ ...@@ -23767,14 +23767,14 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "允许偏差", "comment": "路线名称",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "allowable_deviation" "oldName": "path"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
...@@ -23789,11 +23789,11 @@ ...@@ -23789,11 +23789,11 @@
"charset": "", "charset": "",
"collation": "", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Others", "defaultType": "Null",
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "持续时长s", "comment": "骑行时长(秒)",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
...@@ -23804,10 +23804,10 @@ ...@@ -23804,10 +23804,10 @@
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "description", "name": "distance",
"type": "varchar", "type": "decimal",
"length": 1000, "length": 18,
"decimals": -2147483648, "decimals": 2,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -23815,22 +23815,100 @@ ...@@ -23815,22 +23815,100 @@
"charset": "", "charset": "",
"collation": "", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Others", "defaultType": "Null",
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "描述", "comment": "骑行总长度",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "description" "oldName": "distance"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "show_order", "name": "climb_distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "爬坡距离",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "climb_distance"
},
{
"objectType": "TableField_MYSQL",
"name": "avg_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "平均功率",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "avg_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "avg_speed",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "平均速度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "avg_speed"
},
{
"objectType": "TableField_MYSQL",
"name": "calorie",
"type": "int", "type": "int",
"length": -2147483648, "length": -2147483648,
"decimals": -2147483648, "decimals": -2147483648,
...@@ -23842,24 +23920,24 @@ ...@@ -23842,24 +23920,24 @@
"collation": "", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Others", "defaultType": "Others",
"defaultValue": "0", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "显示顺序", "comment": "卡路里",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "show_order" "oldName": "calorie"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "version", "name": "weight",
"type": "bigint", "type": "decimal",
"length": -2147483648, "length": 18,
"decimals": -2147483648, "decimals": 2,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -23868,24 +23946,24 @@ ...@@ -23868,24 +23946,24 @@
"collation": "", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Others", "defaultType": "Others",
"defaultValue": "0", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "版本号", "comment": "体重",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "version" "oldName": "weight"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "deleted", "name": "one_minutes_ftp",
"type": "tinyint", "type": "decimal",
"length": -2147483648, "length": 18,
"decimals": -2147483648, "decimals": 2,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -23894,24 +23972,24 @@ ...@@ -23894,24 +23972,24 @@
"collation": "", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Others", "defaultType": "Others",
"defaultValue": "0", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "删除标记", "comment": "1分钟平均最佳FTP",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "deleted" "oldName": "one_minutes_ftp"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "create_by", "name": "five_minutes_ftp",
"type": "bigint", "type": "decimal",
"length": -2147483648, "length": 18,
"decimals": -2147483648, "decimals": 2,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -23923,21 +24001,21 @@ ...@@ -23923,21 +24001,21 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "创建人", "comment": "5分钟平均最佳FTP",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "create_by" "oldName": "five_minutes_ftp"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "create_time", "name": "twenty_minutes_ftp",
"type": "datetime", "type": "decimal",
"length": -2147483648, "length": 18,
"decimals": -2147483648, "decimals": 2,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -23946,24 +24024,24 @@ ...@@ -23946,24 +24024,24 @@
"collation": "", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Others", "defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "创建时间", "comment": "20分钟平均最佳FTP",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "create_time" "oldName": "twenty_minutes_ftp"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "update_by", "name": "one_minutes_wkg",
"type": "bigint", "type": "decimal",
"length": -2147483648, "length": 18,
"decimals": -2147483648, "decimals": 2,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -23975,21 +24053,21 @@ ...@@ -23975,21 +24053,21 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "修改人", "comment": "1分钟平均最佳功体比",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "update_by" "oldName": "one_minutes_wkg"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "update_time", "name": "five_minutes_wkg",
"type": "datetime", "type": "decimal",
"length": -2147483648, "length": 18,
"decimals": -2147483648, "decimals": 2,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -23998,24 +24076,232 @@ ...@@ -23998,24 +24076,232 @@
"collation": "", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Others", "defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP", "defaultValue": "",
"isOnUpdateCurrentTimestamp": true, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "修改时间", "comment": "5分钟平均最佳功体比",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "update_time" "oldName": "five_minutes_wkg"
} },
], {
"indexes": [], "objectType": "TableField_MYSQL",
"primaryKey": { "name": "twenty_minutes_wkg",
"objectType": "PrimaryKey_MYSQL", "type": "decimal",
"name": "", "length": 18,
"fields": [ "decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "20分钟平均最佳功体比",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "twenty_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "score",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "得分",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "score"
},
{
"objectType": "TableField_MYSQL",
"name": "praise_num",
"type": "int",
"length": 0,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "获攒数量",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "praise_num"
},
{
"objectType": "TableField_MYSQL",
"name": "status",
"type": "tinyint",
"length": 4,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "状态 10.未提交数据 20.已提交数据",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "status"
},
{
"objectType": "TableField_MYSQL",
"name": "version",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "版本号",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "version"
},
{
"objectType": "TableField_MYSQL",
"name": "deleted",
"type": "tinyint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "删除标记",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "deleted"
},
{
"objectType": "TableField_MYSQL",
"name": "create_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "创建时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "create_time"
},
{
"objectType": "TableField_MYSQL",
"name": "update_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP",
"isOnUpdateCurrentTimestamp": true,
"isAutoInc": false,
"comment": "修改时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "update_time"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"name": "",
"fields": [
{ {
"objectType": "IndexField_MYSQL", "objectType": "IndexField_MYSQL",
"name": "id", "name": "id",
...@@ -24121,13 +24407,6 @@ ...@@ -24121,13 +24407,6 @@
"order": "", "order": "",
"oldName": "" "oldName": ""
}, },
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{ {
"objectType": "IndexField_MYSQL", "objectType": "IndexField_MYSQL",
"name": "", "name": "",
...@@ -24146,8 +24425,8 @@ ...@@ -24146,8 +24425,8 @@
}, },
{ {
"objectType": "Table_MYSQL", "objectType": "Table_MYSQL",
"name": "course_record", "name": "app_version",
"comment": "课程记录", "comment": "app版本升级",
"engine": "InnoDB", "engine": "InnoDB",
"characterSet": "utf8mb4", "characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci", "collation": "utf8mb4_0900_ai_ci",
...@@ -24222,8 +24501,8 @@ ...@@ -24222,8 +24501,8 @@
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "course_id", "name": "client_type",
"type": "bigint", "type": "int",
"length": -2147483648, "length": -2147483648,
"decimals": -2147483648, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
...@@ -24237,437 +24516,21 @@ ...@@ -24237,437 +24516,21 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "课程id", "comment": "1:android 2:ios",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "course_id" "oldName": "client_type"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "course_name", "name": "version",
"type": "varchar", "type": "varchar",
"length": 255, "length": 50,
"decimals": -2147483648, "decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "课程名称",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "course_name"
},
{
"objectType": "TableField_MYSQL",
"name": "player_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "用户id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "player_id"
},
{
"objectType": "TableField_MYSQL",
"name": "map",
"type": "varchar",
"length": 255,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "地图名称",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "map"
},
{
"objectType": "TableField_MYSQL",
"name": "path",
"type": "varchar",
"length": 255,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "路线名称",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "path"
},
{
"objectType": "TableField_MYSQL",
"name": "duration",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "骑行时长(秒)",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "duration"
},
{
"objectType": "TableField_MYSQL",
"name": "distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "骑行总长度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "distance"
},
{
"objectType": "TableField_MYSQL",
"name": "climb_distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "爬坡距离",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "climb_distance"
},
{
"objectType": "TableField_MYSQL",
"name": "avg_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "平均功率",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "avg_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "avg_speed",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "平均速度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "avg_speed"
},
{
"objectType": "TableField_MYSQL",
"name": "calorie",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "卡路里",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "calorie"
},
{
"objectType": "TableField_MYSQL",
"name": "weight",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "体重",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "weight"
},
{
"objectType": "TableField_MYSQL",
"name": "one_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "1分钟平均最佳FTP",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "one_minutes_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "five_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "5分钟平均最佳FTP",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "five_minutes_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "twenty_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "20分钟平均最佳FTP",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "twenty_minutes_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "one_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "1分钟平均最佳功体比",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "one_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "five_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "5分钟平均最佳功体比",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "five_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "twenty_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -24679,21 +24542,21 @@ ...@@ -24679,21 +24542,21 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "20分钟平均最佳功体比", "comment": "版本号x.y.z",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "twenty_minutes_wkg" "oldName": "version"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "score", "name": "content",
"type": "decimal", "type": "varchar",
"length": 18, "length": 1000,
"decimals": 2, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -24705,21 +24568,21 @@ ...@@ -24705,21 +24568,21 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "得分", "comment": "更新内容",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "score" "oldName": "content"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "praise_num", "name": "url",
"type": "int", "type": "varchar",
"length": 0, "length": 500,
"decimals": 0, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -24731,21 +24594,21 @@ ...@@ -24731,21 +24594,21 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "获攒数量", "comment": "下载地址",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "praise_num" "oldName": "url"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "status", "name": "force",
"type": "tinyint", "type": "bit",
"length": 4, "length": -2147483648,
"decimals": 0, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
"setEnumValues": "", "setEnumValues": "",
...@@ -24757,18 +24620,18 @@ ...@@ -24757,18 +24620,18 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "状态 10.未提交数据 20.已提交数据", "comment": "是否强制更新",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "status" "oldName": "force"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "version", "name": "create_by",
"type": "bigint", "type": "bigint",
"length": -2147483648, "length": -2147483648,
"decimals": -2147483648, "decimals": -2147483648,
...@@ -24780,22 +24643,22 @@ ...@@ -24780,22 +24643,22 @@
"collation": "", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Others", "defaultType": "Others",
"defaultValue": "0", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "版本号", "comment": "创建人",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "version" "oldName": "create_by"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "deleted", "name": "create_time",
"type": "tinyint", "type": "datetime",
"length": -2147483648, "length": -2147483648,
"decimals": -2147483648, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
...@@ -24806,22 +24669,22 @@ ...@@ -24806,22 +24669,22 @@
"collation": "", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Others", "defaultType": "Others",
"defaultValue": "0", "defaultValue": "CURRENT_TIMESTAMP",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "删除标记", "comment": "创建时间",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "deleted" "oldName": "create_time"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "create_time", "name": "update_by",
"type": "datetime", "type": "bigint",
"length": -2147483648, "length": -2147483648,
"decimals": -2147483648, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
...@@ -24832,17 +24695,17 @@ ...@@ -24832,17 +24695,17 @@
"collation": "", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Others", "defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "创建时间", "comment": "修改人",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "create_time" "oldName": "update_by"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
...@@ -24981,6 +24844,13 @@ ...@@ -24981,6 +24844,13 @@
"order": "", "order": "",
"oldName": "" "oldName": ""
}, },
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{ {
"objectType": "IndexField_MYSQL", "objectType": "IndexField_MYSQL",
"name": "", "name": "",
...@@ -24999,8 +24869,8 @@ ...@@ -24999,8 +24869,8 @@
}, },
{ {
"objectType": "Table_MYSQL", "objectType": "Table_MYSQL",
"name": "app_version", "name": "course_item",
"comment": "app版本升级", "comment": "课程章节",
"engine": "InnoDB", "engine": "InnoDB",
"characterSet": "utf8mb4", "characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci", "collation": "utf8mb4_0900_ai_ci",
...@@ -25075,7 +24945,33 @@ ...@@ -25075,7 +24945,33 @@
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "client_type", "name": "name",
"type": "varchar",
"length": 100,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "章节名称",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "name"
},
{
"objectType": "TableField_MYSQL",
"name": "target_type",
"type": "int", "type": "int",
"length": -2147483648, "length": -2147483648,
"decimals": -2147483648, "decimals": -2147483648,
...@@ -25090,20 +24986,20 @@ ...@@ -25090,20 +24986,20 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "1:android 2:ios", "comment": "指标类型 1:ftp 2:踏频 3:速度",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "client_type" "oldName": "target_type"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "version", "name": "target_value_type",
"type": "varchar", "type": "int",
"length": 50, "length": -2147483648,
"decimals": -2147483648, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
...@@ -25116,20 +25012,20 @@ ...@@ -25116,20 +25012,20 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "版本号x.y.z", "comment": "目标值类型",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "version" "oldName": "target_value_type"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "content", "name": "target_value",
"type": "varchar", "type": "int",
"length": 1000, "length": -2147483648,
"decimals": -2147483648, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
...@@ -25142,20 +25038,72 @@ ...@@ -25142,20 +25038,72 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "更新内容", "comment": "目标值",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "content" "oldName": "target_value"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "url", "name": "allowable_deviation",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "允许偏差",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "allowable_deviation"
},
{
"objectType": "TableField_MYSQL",
"name": "duration",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "持续时长s",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "duration"
},
{
"objectType": "TableField_MYSQL",
"name": "description",
"type": "varchar", "type": "varchar",
"length": 500, "length": 1000,
"decimals": -2147483648, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
"isZeroFill": false, "isZeroFill": false,
...@@ -25168,19 +25116,19 @@ ...@@ -25168,19 +25116,19 @@
"defaultValue": "", "defaultValue": "",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "下载地址", "comment": "描述",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "url" "oldName": "description"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
"name": "force", "name": "show_order",
"type": "bit", "type": "int",
"length": -2147483648, "length": -2147483648,
"decimals": -2147483648, "decimals": -2147483648,
"isUnsigned": false, "isUnsigned": false,
...@@ -25191,17 +25139,69 @@ ...@@ -25191,17 +25139,69 @@
"collation": "", "collation": "",
"isNullable": true, "isNullable": true,
"defaultType": "Others", "defaultType": "Others",
"defaultValue": "", "defaultValue": "0",
"isOnUpdateCurrentTimestamp": false, "isOnUpdateCurrentTimestamp": false,
"isAutoInc": false, "isAutoInc": false,
"comment": "是否强制更新", "comment": "显示顺序",
"columnFormat": "", "columnFormat": "",
"storage": "", "storage": "",
"isVirtual": false, "isVirtual": false,
"isGeneratedAlways": false, "isGeneratedAlways": false,
"virtualExpr": "", "virtualExpr": "",
"virtualType": "", "virtualType": "",
"oldName": "force" "oldName": "show_order"
},
{
"objectType": "TableField_MYSQL",
"name": "version",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "版本号",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "version"
},
{
"objectType": "TableField_MYSQL",
"name": "deleted",
"type": "tinyint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "删除标记",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "deleted"
}, },
{ {
"objectType": "TableField_MYSQL", "objectType": "TableField_MYSQL",
......
package com.antai.sport.http.server.repository.app.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author liming
* @since 2022-08-20
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class AppVersion implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 1:android 2:ios
*/
private Integer clientType;
/**
* 版本号x.y.z
*/
private String version;
/**
* 更新内容
*/
private String content;
/**
* 下载地址
*/
private String url;
/**
* 是否强制更新
*/
private Boolean force;
/**
* 创建人
*/
private Long createBy;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 修改人
*/
private Long updateBy;
/**
* 修改时间
*/
private LocalDateTime updateTime;
}
package com.antai.sport.http.server.repository.app.mapper;
import com.antai.sport.http.server.repository.app.entity.AppVersion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author liming
* @since 2022-08-20
*/
public interface AppVersionMapper extends BaseMapper<AppVersion> {
}
package com.antai.sport.http.server.repository.course.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author liming
* @since 2022-08-20
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class Course implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 课程类型
*/
private Integer type;
/**
* 课程名称
*/
private String name;
/**
* 持续时长s
*/
private Integer duration;
/**
* 描述
*/
private String description;
/**
* 状态 10:未发布 20:已发布
*/
private Integer status;
/**
* 显示顺序
*/
private Integer showOrder;
/**
* 版本号
*/
private Long version;
/**
* 删除标记
*/
private Integer deleted;
/**
* 创建人
*/
private Long createBy;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 修改人
*/
private Long updateBy;
/**
* 修改时间
*/
private LocalDateTime updateTime;
}
package com.antai.sport.http.server.repository.course.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author liming
* @since 2022-08-20
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class CourseItem implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 章节名称
*/
private String name;
/**
* 指标类型 1:ftp 2:踏频 3:速度
*/
private Integer targetType;
/**
* 目标值类型
*/
private Integer targetValueType;
/**
* 目标值
*/
private Integer targetValue;
/**
* 允许偏差
*/
private BigDecimal allowableDeviation;
/**
* 持续时长s
*/
private Integer duration;
/**
* 描述
*/
private String description;
/**
* 显示顺序
*/
private Integer showOrder;
/**
* 版本号
*/
private Long version;
/**
* 删除标记
*/
private Integer deleted;
/**
* 创建人
*/
private Long createBy;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 修改人
*/
private Long updateBy;
/**
* 修改时间
*/
private LocalDateTime updateTime;
}
package com.antai.sport.http.server.repository.course.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* <p>
*
* </p>
*
* @author liming
* @since 2022-08-20
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class CourseRecord implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 课程id
*/
private Long courseId;
/**
* 课程名称
*/
private String courseName;
/**
* 用户id
*/
private Long playerId;
/**
* 地图名称
*/
private String map;
/**
* 路线名称
*/
private String path;
/**
* 骑行时长(秒)
*/
private Integer duration;
/**
* 骑行总长度
*/
private BigDecimal distance;
/**
* 爬坡距离
*/
private BigDecimal climbDistance;
/**
* 平均功率
*/
private BigDecimal avgFtp;
/**
* 平均速度
*/
private BigDecimal avgSpeed;
/**
* 卡路里
*/
private Integer calorie;
/**
* 体重
*/
private BigDecimal weight;
/**
* 1分钟平均最佳FTP
*/
private BigDecimal oneMinutesFtp;
/**
* 5分钟平均最佳FTP
*/
private BigDecimal fiveMinutesFtp;
/**
* 20分钟平均最佳FTP
*/
private BigDecimal twentyMinutesFtp;
/**
* 1分钟平均最佳功体比
*/
private BigDecimal oneMinutesWkg;
/**
* 5分钟平均最佳功体比
*/
private BigDecimal fiveMinutesWkg;
/**
* 20分钟平均最佳功体比
*/
private BigDecimal twentyMinutesWkg;
/**
* 得分
*/
private BigDecimal score;
/**
* 获攒数量
*/
private Integer praiseNum;
/**
* 状态 10.未提交数据 20.已提交数据
*/
private Integer status;
/**
* 版本号
*/
private Long version;
/**
* 删除标记
*/
private Integer deleted;
/**
* 创建时间
*/
private LocalDateTime createTime;
/**
* 修改时间
*/
private LocalDateTime updateTime;
}
package com.antai.sport.http.server.repository.course.mapper;
import com.antai.sport.http.server.repository.course.entity.CourseItem;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author liming
* @since 2022-08-20
*/
public interface CourseItemMapper extends BaseMapper<CourseItem> {
}
package com.antai.sport.http.server.repository.course.mapper;
import com.antai.sport.http.server.repository.course.entity.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author liming
* @since 2022-08-20
*/
public interface CourseMapper extends BaseMapper<Course> {
}
package com.antai.sport.http.server.repository.course.mapper;
import com.antai.sport.http.server.repository.course.entity.CourseRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
* Mapper 接口
* </p>
*
* @author liming
* @since 2022-08-20
*/
public interface CourseRecordMapper extends BaseMapper<CourseRecord> {
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.antai.sport.http.server.repository.app.mapper.AppVersionMapper">
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.antai.sport.http.server.repository.course.mapper.CourseItemMapper">
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.antai.sport.http.server.repository.course.mapper.CourseMapper">
</mapper>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.antai.sport.http.server.repository.course.mapper.CourseRecordMapper">
</mapper>
package com.antai.sport.http.server.server.api.business.course.controller;
import com.antai.sport.http.server.server.api.business.course.service.CourseService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("course")
@Api(tags = {"课程训练接口"})
public class CourseController {
private CourseService courseService;
}
package com.antai.sport.http.server.server.api.business.course.service;
import org.springframework.stereotype.Service;
@Service
public class CourseService {
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment