Browse Source

数据表模型

release_0.0.1
巴林闲侠 3 years ago
parent
commit
3f55d3cd8a
  1. 1
      api/app/lib/index.js
  2. 94
      api/app/lib/models/department.js
  3. 922
      api/app/lib/models/road.js
  4. 202
      api/app/lib/models/user.js
  5. 2
      api/app/lib/models/user_token.js
  6. 234
      api/log/development.log

1
api/app/lib/index.js

@ -23,6 +23,7 @@ module.exports.entry = function (app, router, opts) {
module.exports.models = function (dc) { // dc = { orm: Sequelize对象, ORM: Sequelize, models: {} } module.exports.models = function (dc) { // dc = { orm: Sequelize对象, ORM: Sequelize, models: {} }
fs.readdirSync(path.join(__dirname, '/models')).forEach((filename) => { fs.readdirSync(path.join(__dirname, '/models')).forEach((filename) => {
console.log(filename);
require(`./models/${filename}`)(dc) require(`./models/${filename}`)(dc)
}); });

94
api/app/lib/models/department.js

@ -2,51 +2,51 @@
'use strict'; 'use strict';
module.exports = dc => { module.exports = dc => {
const DataTypes = dc.ORM; const DataTypes = dc.ORM;
const sequelize = dc.orm; const sequelize = dc.orm;
const Department = sequelize.define("department", { const Department = sequelize.define("department", {
id: { id: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: false, allowNull: false,
defaultValue: "nextval(department_id_seq1::regclass)", defaultValue: "nextval(department_id_seq1::regclass)",
comment: null, comment: null,
primaryKey: true, primaryKey: true,
field: "id", field: "id",
autoIncrement: false, autoIncrement: false,
unique: "department_id_uindex" unique: "department_id_uindex"
}, },
name: { name: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: false,
field: "name", field: "name",
autoIncrement: false autoIncrement: false
}, },
dependence: { dependence: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: false,
field: "dependence", field: "dependence",
autoIncrement: false autoIncrement: false
}, },
delete: { delete: {
type: DataTypes.BOOLEAN, type: DataTypes.BOOLEAN,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: false,
field: "delete", field: "delete",
autoIncrement: false autoIncrement: false
} }
}, { }, {
tableName: "department", tableName: "department",
comment: "", comment: "",
indexes: [] indexes: []
}); });
dc.models.Department = Department; dc.models.Department = Department;
return Department; return Department;
}; };

922
api/app/lib/models/road.js

@ -2,465 +2,465 @@
'use strict'; 'use strict';
module.exports = dc => { module.exports = dc => {
const DataTypes = dc.ORM; const DataTypes = dc.ORM;
const sequelize = dc.orm; const sequelize = dc.orm;
const Road = sequelize.define("road", { const Road = sequelize.define("road", {
id: { id: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: true, primaryKey: true,
field: "id", field: "id",
autoIncrement: true, autoIncrement: true,
unique: "road_id_uindex" unique: "road_id_uindex"
}, },
routeName: { routeName: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "路线名称", comment: "路线名称",
primaryKey: false, primaryKey: false,
field: "route_name", field: "route_name",
autoIncrement: false autoIncrement: false
}, },
routeCode: { routeCode: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "路线代码", comment: "路线代码",
primaryKey: false, primaryKey: false,
field: "route_code", field: "route_code",
autoIncrement: false autoIncrement: false
}, },
sectionNo: { sectionNo: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "路段序号", comment: "路段序号",
primaryKey: false, primaryKey: false,
field: "section_no", field: "section_no",
autoIncrement: false autoIncrement: false
}, },
townshipCode: { townshipCode: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "乡镇编码", comment: "乡镇编码",
primaryKey: false, primaryKey: false,
field: "township_code", field: "township_code",
autoIncrement: false autoIncrement: false
}, },
startingPlaceName: { startingPlaceName: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "起点地名", comment: "起点地名",
primaryKey: false, primaryKey: false,
field: "starting_place_name", field: "starting_place_name",
autoIncrement: false autoIncrement: false
}, },
startStation: { startStation: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "起点桩号", comment: "起点桩号",
primaryKey: false, primaryKey: false,
field: "start_station", field: "start_station",
autoIncrement: false autoIncrement: false
}, },
categoryOfStartingPointAndDividingPoint: { categoryOfStartingPointAndDividingPoint: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "起点分界点类别", comment: "起点分界点类别",
primaryKey: false, primaryKey: false,
field: "category_of_starting_point_and_dividing_point", field: "category_of_starting_point_and_dividing_point",
autoIncrement: false autoIncrement: false
}, },
stopPlaceName: { stopPlaceName: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "止点地名", comment: "止点地名",
primaryKey: false, primaryKey: false,
field: "stop_place_name", field: "stop_place_name",
autoIncrement: false autoIncrement: false
}, },
categoryOfDeadCenterAndDividingPoint: { categoryOfDeadCenterAndDividingPoint: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "止点分界点类别", comment: "止点分界点类别",
primaryKey: false, primaryKey: false,
field: "category_of_dead_center_and_dividing_point", field: "category_of_dead_center_and_dividing_point",
autoIncrement: false autoIncrement: false
}, },
stopStation: { stopStation: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "止点桩号", comment: "止点桩号",
primaryKey: false, primaryKey: false,
field: "stop_station", field: "stop_station",
autoIncrement: false autoIncrement: false
}, },
sectionType: { sectionType: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "路段类型", comment: "路段类型",
primaryKey: false, primaryKey: false,
field: "section_type", field: "section_type",
autoIncrement: false autoIncrement: false
}, },
natureOfRoadSection: { natureOfRoadSection: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "路段性质", comment: "路段性质",
primaryKey: false, primaryKey: false,
field: "nature_of_road_section", field: "nature_of_road_section",
autoIncrement: false autoIncrement: false
}, },
completionTime: { completionTime: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "建成时间", comment: "建成时间",
primaryKey: false, primaryKey: false,
field: "completion_time", field: "completion_time",
autoIncrement: false autoIncrement: false
}, },
gbmAndCivilizedModelRoad: { gbmAndCivilizedModelRoad: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "GBM及文明样板路", comment: "GBM及文明样板路",
primaryKey: false, primaryKey: false,
field: "gbm_and_civilized_model_road", field: "gbm_and_civilized_model_road",
autoIncrement: false autoIncrement: false
}, },
landforms: { landforms: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "地貌", comment: "地貌",
primaryKey: false, primaryKey: false,
field: "landforms", field: "landforms",
autoIncrement: false autoIncrement: false
}, },
natureOfCharges: { natureOfCharges: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "收费性质", comment: "收费性质",
primaryKey: false, primaryKey: false,
field: "nature_of_charges", field: "nature_of_charges",
autoIncrement: false autoIncrement: false
}, },
numberOfCulverts: { numberOfCulverts: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "涵洞数量", comment: "涵洞数量",
primaryKey: false, primaryKey: false,
field: "number_of_culverts", field: "number_of_culverts",
autoIncrement: false autoIncrement: false
}, },
technicalLevel: { technicalLevel: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "技术等级", comment: "技术等级",
primaryKey: false, primaryKey: false,
field: "technical_level", field: "technical_level",
autoIncrement: false autoIncrement: false
}, },
pavementType: { pavementType: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "路面类型", comment: "路面类型",
primaryKey: false, primaryKey: false,
field: "pavement_type", field: "pavement_type",
autoIncrement: false autoIncrement: false
}, },
pavementWidth: { pavementWidth: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "路面宽度", comment: "路面宽度",
primaryKey: false, primaryKey: false,
field: "pavement_width", field: "pavement_width",
autoIncrement: false autoIncrement: false
}, },
subgradeWidth: { subgradeWidth: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "路基宽度", comment: "路基宽度",
primaryKey: false, primaryKey: false,
field: "subgrade_width", field: "subgrade_width",
autoIncrement: false autoIncrement: false
}, },
laneCharacteristics: { laneCharacteristics: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "车道特征", comment: "车道特征",
primaryKey: false, primaryKey: false,
field: "lane_characteristics", field: "lane_characteristics",
autoIncrement: false autoIncrement: false
}, },
whetherItIsOpenToTrafficInSunnyOrRainyDays: { whetherItIsOpenToTrafficInSunnyOrRainyDays: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "是否晴雨通车", comment: "是否晴雨通车",
primaryKey: false, primaryKey: false,
field: "whether_it_is_open_to_traffic_in_sunny_or_rainy_days", field: "whether_it_is_open_to_traffic_in_sunny_or_rainy_days",
autoIncrement: false autoIncrement: false
}, },
designSpeedPerHour: { designSpeedPerHour: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "设计时速", comment: "设计时速",
primaryKey: false, primaryKey: false,
field: "design_speed_per_hour", field: "design_speed_per_hour",
autoIncrement: false autoIncrement: false
}, },
urbanManagementSectionOrNot: { urbanManagementSectionOrNot: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "是否城管路段", comment: "是否城管路段",
primaryKey: false, primaryKey: false,
field: "urban_management_section_or_not", field: "urban_management_section_or_not",
autoIncrement: false autoIncrement: false
}, },
managementAndMaintenanceUnit: { managementAndMaintenanceUnit: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "管养单位", comment: "管养单位",
primaryKey: false, primaryKey: false,
field: "management_and_maintenance_unit", field: "management_and_maintenance_unit",
autoIncrement: false autoIncrement: false
}, },
roadAdministrationUnit: { roadAdministrationUnit: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "路政管理单位", comment: "路政管理单位",
primaryKey: false, primaryKey: false,
field: "road_administration_unit", field: "road_administration_unit",
autoIncrement: false autoIncrement: false
}, },
alimentation: { alimentation: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "列养情况", comment: "列养情况",
primaryKey: false, primaryKey: false,
field: "alimentation", field: "alimentation",
autoIncrement: false autoIncrement: false
}, },
sourceOfListedMaintenanceFunds: { sourceOfListedMaintenanceFunds: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "列养资金来源", comment: "列养资金来源",
primaryKey: false, primaryKey: false,
field: "source_of_listed_maintenance_funds", field: "source_of_listed_maintenance_funds",
autoIncrement: false autoIncrement: false
}, },
curingTime: { curingTime: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "养护时间", comment: "养护时间",
primaryKey: false, primaryKey: false,
field: "curing_time_", field: "curing_time_",
autoIncrement: false autoIncrement: false
}, },
greeningMileage: { greeningMileage: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "可绿化里程", comment: "可绿化里程",
primaryKey: false, primaryKey: false,
field: "greening_mileage", field: "greening_mileage",
autoIncrement: false autoIncrement: false
}, },
greeningMileaged: { greeningMileaged: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "已绿化里程", comment: "已绿化里程",
primaryKey: false, primaryKey: false,
field: "greening_mileaged", field: "greening_mileaged",
autoIncrement: false autoIncrement: false
}, },
typeOfRepeatedRoadSection: { typeOfRepeatedRoadSection: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "重复道路路段类型", comment: "重复道路路段类型",
primaryKey: false, primaryKey: false,
field: "type_of_repeated_road_section", field: "type_of_repeated_road_section",
autoIncrement: false autoIncrement: false
}, },
serialNumberOfRepeatedSection: { serialNumberOfRepeatedSection: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "重复路段序号", comment: "重复路段序号",
primaryKey: false, primaryKey: false,
field: "serial_number_of_repeated_section", field: "serial_number_of_repeated_section",
autoIncrement: false autoIncrement: false
}, },
repeatedSectionRouteCode: { repeatedSectionRouteCode: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "重复路段路线编码", comment: "重复路段路线编码",
primaryKey: false, primaryKey: false,
field: "repeated_section_route_code", field: "repeated_section_route_code",
autoIncrement: false autoIncrement: false
}, },
reportingUnit: { reportingUnit: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "填报单位", comment: "填报单位",
primaryKey: false, primaryKey: false,
field: "reporting_unit", field: "reporting_unit",
autoIncrement: false autoIncrement: false
}, },
reasonForChange: { reasonForChange: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "变更原因", comment: "变更原因",
primaryKey: false, primaryKey: false,
field: "reason_for_change", field: "reason_for_change",
autoIncrement: false autoIncrement: false
}, },
changeTime: { changeTime: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "变更时间", comment: "变更时间",
primaryKey: false, primaryKey: false,
field: "change_time", field: "change_time",
autoIncrement: false autoIncrement: false
}, },
whetherMaintenanceManagedHighway: { whetherMaintenanceManagedHighway: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "是否按干线公路管理接养", comment: "是否按干线公路管理接养",
primaryKey: false, primaryKey: false,
field: "whether_maintenance_managed_highway", field: "whether_maintenance_managed_highway",
autoIncrement: false autoIncrement: false
}, },
remarks: { remarks: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "备注", comment: "备注",
primaryKey: false, primaryKey: false,
field: "remarks", field: "remarks",
autoIncrement: false autoIncrement: false
}, },
routeCodeOfLastYear: { routeCodeOfLastYear: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "上年路线编码", comment: "上年路线编码",
primaryKey: false, primaryKey: false,
field: "route_code_of_last_year", field: "route_code_of_last_year",
autoIncrement: false autoIncrement: false
}, },
routeNameOfLastYear: { routeNameOfLastYear: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "上年路线名称", comment: "上年路线名称",
primaryKey: false, primaryKey: false,
field: "route_name_of_last_year", field: "route_name_of_last_year",
autoIncrement: false autoIncrement: false
}, },
startingStationOfLastYear: { startingStationOfLastYear: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "上年起点桩号", comment: "上年起点桩号",
primaryKey: false, primaryKey: false,
field: "starting_station_of_last_year", field: "starting_station_of_last_year",
autoIncrement: false autoIncrement: false
}, },
lastYearsEndingPointStakeNumber: { lastYearsEndingPointStakeNumber: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "上年止点桩号", comment: "上年止点桩号",
primaryKey: false, primaryKey: false,
field: "last_years_ending_point_stake_number", field: "last_years_ending_point_stake_number",
autoIncrement: false autoIncrement: false
}, },
graphicMileage: { graphicMileage: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "图形里程", comment: "图形里程",
primaryKey: false, primaryKey: false,
field: "graphic_mileage", field: "graphic_mileage",
autoIncrement: false autoIncrement: false
}, },
chainageMileage: { chainageMileage: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "桩号里程", comment: "桩号里程",
primaryKey: false, primaryKey: false,
field: "chainage_mileage", field: "chainage_mileage",
autoIncrement: false autoIncrement: false
}, },
districtcounty: { districtcounty: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "所在区县", comment: "所在区县",
primaryKey: false, primaryKey: false,
field: "districtcounty", field: "districtcounty",
autoIncrement: false autoIncrement: false
}, },
locationCity: { locationCity: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "所在地市", comment: "所在地市",
primaryKey: false, primaryKey: false,
field: "location_city", field: "location_city",
autoIncrement: false autoIncrement: false
}, },
level: { level: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "县 / 乡 / 村", comment: "县 / 乡 / 村",
primaryKey: false, primaryKey: false,
field: "level", field: "level",
autoIncrement: false autoIncrement: false
} }
}, { }, {
tableName: "road", tableName: "road",
comment: "", comment: "",
indexes: [] indexes: []
}); });
dc.models.Road = Road; dc.models.Road = Road;
return Road; return Road;
}; };

202
api/app/lib/models/user.js

@ -2,105 +2,105 @@
'use strict'; 'use strict';
module.exports = dc => { module.exports = dc => {
const DataTypes = dc.ORM; const DataTypes = dc.ORM;
const sequelize = dc.orm; const sequelize = dc.orm;
const User = sequelize.define("user", { const User = sequelize.define("user", {
id: { id: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: false, allowNull: false,
defaultValue: "nextval(user_id_seq1::regclass)", defaultValue: "nextval(user_id_seq1::regclass)",
comment: null, comment: null,
primaryKey: true, primaryKey: true,
field: "id", field: "id",
autoIncrement: false, autoIncrement: false,
unique: "user_id_uindex" unique: "user_id_uindex"
}, },
name: { name: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: false,
field: "name", field: "name",
autoIncrement: false autoIncrement: false
}, },
username: { username: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: false,
field: "username", field: "username",
autoIncrement: false autoIncrement: false
}, },
password: { password: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: false,
field: "password", field: "password",
autoIncrement: false autoIncrement: false
}, },
departmentId: { departmentId: {
type: DataTypes.INTEGER, type: DataTypes.INTEGER,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: false,
field: "department_id", field: "department_id",
autoIncrement: false autoIncrement: false
}, },
delete: { delete: {
type: DataTypes.BOOLEAN, type: DataTypes.BOOLEAN,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: false,
field: "delete", field: "delete",
autoIncrement: false autoIncrement: false
}, },
remark: { remark: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: "th", defaultValue: "th",
comment: null, comment: null,
primaryKey: false, primaryKey: false,
field: "remark", field: "remark",
autoIncrement: false autoIncrement: false
}, },
phone: { phone: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: false,
field: "phone", field: "phone",
autoIncrement: false autoIncrement: false
}, },
email: { email: {
type: DataTypes.STRING, type: DataTypes.STRING,
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: false,
field: "email", field: "email",
autoIncrement: false autoIncrement: false
}, },
enable: { enable: {
type: DataTypes.BOOLEAN, type: DataTypes.BOOLEAN,
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: false,
field: "enable", field: "enable",
autoIncrement: false autoIncrement: false
} }
}, { }, {
tableName: "user", tableName: "user",
comment: "", comment: "",
indexes: [] indexes: []
}); });
dc.models.User = User; dc.models.User = User;
return User; return User;
}; };

2
api/app/lib/models/user_token.js

@ -10,7 +10,7 @@ module.exports = dc => {
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: true,
field: "token", field: "token",
autoIncrement: false autoIncrement: false
}, },

234
api/log/development.log

@ -6717,3 +6717,237 @@
2022-07-20 20:45:25.022 - debug: [FS-LOGGER] Init. 2022-07-20 20:45:25.022 - debug: [FS-LOGGER] Init.
2022-07-20 20:45:25.106 - info: [FS-ATTACHMENT] Inject attachment mw into router. 2022-07-20 20:45:25.106 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-20 20:45:25.106 - info: [FS-AUTH] Inject auth and api mv into router. 2022-07-20 20:45:25.106 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-20 20:45:56.444 - debug: [FS-LOGGER] Init.
2022-07-20 20:45:56.515 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-20 20:45:56.515 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-20 20:47:15.777 - error: path: /login, error: SequelizeDatabaseError: 关系 "user_token" 的 "id" 字段不存在
2022-07-20 20:47:17.648 - error: [FS-ERRHD]
{
message: 'read ECONNRESET',
stack: 'SequelizeConnectionError: read ECONNRESET\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' +
' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' +
' at Connection.emit (events.js:314:20)\n' +
' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' +
' at Socket.emit (events.js:314:20)\n' +
' at emitErrorNT (internal/streams/destroy.js:92:8)\n' +
' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' +
'From previous event:\n' +
' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' +
'From previous event:\n' +
' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' +
' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' +
' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' +
' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' +
' at Pool.start (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:412:10)\n' +
' at Pool.acquire (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:429:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:292:24\n' +
' at processImmediate (internal/timers.js:461:21)\n' +
' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' +
'From previous event:\n' +
' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' +
' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' +
' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' +
' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' +
' at new Promise (<anonymous>)\n' +
' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' +
' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)',
name: 'SequelizeConnectionError',
parent: { errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' },
original: { '$ref': '$["parent"]' },
__stackCleaned__: true
}
2022-07-20 20:47:19.778 - error: [FS-ERRHD]
{
message: 'read ECONNRESET',
stack: 'SequelizeConnectionError: read ECONNRESET\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' +
' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' +
' at Connection.emit (events.js:314:20)\n' +
' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' +
' at Socket.emit (events.js:314:20)\n' +
' at emitErrorNT (internal/streams/destroy.js:92:8)\n' +
' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' +
'From previous event:\n' +
' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' +
'From previous event:\n' +
' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' +
' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' +
' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' +
' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' +
' at Pool.start (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:412:10)\n' +
' at Pool.acquire (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:429:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:292:24\n' +
' at processImmediate (internal/timers.js:461:21)\n' +
' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' +
'From previous event:\n' +
' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' +
' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' +
' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' +
' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' +
' at new Promise (<anonymous>)\n' +
' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' +
' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)',
name: 'SequelizeConnectionError',
parent: { errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' },
original: { '$ref': '$["parent"]' },
__stackCleaned__: true
}
2022-07-20 20:47:21.058 - error: [FS-ERRHD]
{
message: 'read ECONNRESET',
stack: 'SequelizeConnectionError: read ECONNRESET\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' +
' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' +
' at Connection.emit (events.js:314:20)\n' +
' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' +
' at Socket.emit (events.js:314:20)\n' +
' at emitErrorNT (internal/streams/destroy.js:92:8)\n' +
' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' +
'From previous event:\n' +
' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' +
'From previous event:\n' +
' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' +
' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' +
' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' +
' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' +
' at Pool.start (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:412:10)\n' +
' at Pool.acquire (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:429:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:292:24\n' +
' at processImmediate (internal/timers.js:461:21)\n' +
' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' +
'From previous event:\n' +
' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' +
' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' +
' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' +
' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' +
' at new Promise (<anonymous>)\n' +
' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' +
' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)',
name: 'SequelizeConnectionError',
parent: { errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' },
original: { '$ref': '$["parent"]' },
__stackCleaned__: true
}
2022-07-20 20:47:22.122 - error: [FS-ERRHD]
{
message: 'read ECONNRESET',
stack: 'SequelizeConnectionError: read ECONNRESET\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' +
' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' +
' at Connection.emit (events.js:314:20)\n' +
' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' +
' at Socket.emit (events.js:314:20)\n' +
' at emitErrorNT (internal/streams/destroy.js:92:8)\n' +
' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' +
'From previous event:\n' +
' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' +
'From previous event:\n' +
' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' +
' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' +
' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' +
' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' +
' at Pool.start (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:412:10)\n' +
' at Pool.acquire (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:429:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:292:24\n' +
' at processImmediate (internal/timers.js:461:21)\n' +
' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' +
'From previous event:\n' +
' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' +
' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' +
' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' +
' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' +
' at new Promise (<anonymous>)\n' +
' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' +
' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)',
name: 'SequelizeConnectionError',
parent: { errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' },
original: { '$ref': '$["parent"]' },
__stackCleaned__: true
}
2022-07-20 20:47:28.269 - debug: [FS-LOGGER] Init.
2022-07-20 20:47:28.345 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-20 20:47:28.345 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-20 20:48:16.746 - debug: [FS-LOGGER] Init.
2022-07-20 20:48:16.819 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-20 20:48:16.819 - info: [FS-AUTH] Inject auth and api mv into router.

Loading…
Cancel
Save