17 changed files with 235 additions and 55 deletions
			
			
		@ -0,0 +1,117 @@ | 
				
			|||
/* eslint-disable*/ | 
				
			|||
'use strict'; | 
				
			|||
 | 
				
			|||
module.exports = dc => { | 
				
			|||
   const DataTypes = dc.ORM; | 
				
			|||
   const sequelize = dc.orm; | 
				
			|||
   const PumpInformation = sequelize.define("pumpInformation", { | 
				
			|||
      id: { | 
				
			|||
         type: DataTypes.INTEGER, | 
				
			|||
         allowNull: false, | 
				
			|||
         defaultValue: null, | 
				
			|||
         comment: null, | 
				
			|||
         primaryKey: true, | 
				
			|||
         field: "id", | 
				
			|||
         autoIncrement: true, | 
				
			|||
         unique: "t_pump_information_id_uindex" | 
				
			|||
      }, | 
				
			|||
      structureId: { | 
				
			|||
         type: DataTypes.INTEGER, | 
				
			|||
         allowNull: false, | 
				
			|||
         defaultValue: null, | 
				
			|||
         comment: null, | 
				
			|||
         primaryKey: false, | 
				
			|||
         field: "structure_id", | 
				
			|||
         autoIncrement: false | 
				
			|||
      }, | 
				
			|||
      area: { | 
				
			|||
         type: DataTypes.STRING, | 
				
			|||
         allowNull: true, | 
				
			|||
         defaultValue: null, | 
				
			|||
         comment: null, | 
				
			|||
         primaryKey: false, | 
				
			|||
         field: "area", | 
				
			|||
         autoIncrement: false | 
				
			|||
      }, | 
				
			|||
      scale: { | 
				
			|||
         type: DataTypes.STRING, | 
				
			|||
         allowNull: true, | 
				
			|||
         defaultValue: null, | 
				
			|||
         comment: null, | 
				
			|||
         primaryKey: false, | 
				
			|||
         field: "scale", | 
				
			|||
         autoIncrement: false | 
				
			|||
      }, | 
				
			|||
      waterType: { | 
				
			|||
         type: DataTypes.STRING, | 
				
			|||
         allowNull: true, | 
				
			|||
         defaultValue: null, | 
				
			|||
         comment: null, | 
				
			|||
         primaryKey: false, | 
				
			|||
         field: "water_type", | 
				
			|||
         autoIncrement: false | 
				
			|||
      }, | 
				
			|||
      elcType: { | 
				
			|||
         type: DataTypes.STRING, | 
				
			|||
         allowNull: true, | 
				
			|||
         defaultValue: null, | 
				
			|||
         comment: null, | 
				
			|||
         primaryKey: false, | 
				
			|||
         field: "elc_type", | 
				
			|||
         autoIncrement: false | 
				
			|||
      }, | 
				
			|||
      byType: { | 
				
			|||
         type: DataTypes.STRING, | 
				
			|||
         allowNull: true, | 
				
			|||
         defaultValue: null, | 
				
			|||
         comment: null, | 
				
			|||
         primaryKey: false, | 
				
			|||
         field: "by_type", | 
				
			|||
         autoIncrement: false | 
				
			|||
      }, | 
				
			|||
      num: { | 
				
			|||
         type: DataTypes.INTEGER, | 
				
			|||
         allowNull: true, | 
				
			|||
         defaultValue: null, | 
				
			|||
         comment: null, | 
				
			|||
         primaryKey: false, | 
				
			|||
         field: "num", | 
				
			|||
         autoIncrement: false | 
				
			|||
      }, | 
				
			|||
      startTime: { | 
				
			|||
         type: DataTypes.STRING, | 
				
			|||
         allowNull: true, | 
				
			|||
         defaultValue: null, | 
				
			|||
         comment: null, | 
				
			|||
         primaryKey: false, | 
				
			|||
         field: "start_time", | 
				
			|||
         autoIncrement: false | 
				
			|||
      }, | 
				
			|||
      reinforceTime: { | 
				
			|||
         type: DataTypes.STRING, | 
				
			|||
         allowNull: true, | 
				
			|||
         defaultValue: null, | 
				
			|||
         comment: null, | 
				
			|||
         primaryKey: false, | 
				
			|||
         field: "reinforce_time", | 
				
			|||
         autoIncrement: false | 
				
			|||
      }, | 
				
			|||
      func: { | 
				
			|||
         type: DataTypes.STRING, | 
				
			|||
         allowNull: true, | 
				
			|||
         defaultValue: null, | 
				
			|||
         comment: null, | 
				
			|||
         primaryKey: false, | 
				
			|||
         field: "func", | 
				
			|||
         autoIncrement: false | 
				
			|||
      }, | 
				
			|||
 | 
				
			|||
   }, { | 
				
			|||
      tableName: "t_pump_information", | 
				
			|||
      comment: "", | 
				
			|||
      indexes: [] | 
				
			|||
   }); | 
				
			|||
 | 
				
			|||
   dc.models.PumpInformation = PumpInformation; | 
				
			|||
   return PumpInformation; | 
				
			|||
}; | 
				
			|||
@ -0,0 +1,25 @@ | 
				
			|||
INSERT INTO public.t_pump_information (id, structure_id, area, scale, water_type, elc_type, by_type, func, num, start_time, reinforce_time) VALUES (DEFAULT, | 
				
			|||
 3569, '东新乡', 840,'1000ZLB—4轴流泵','JSL12—14','S91000KVA','排灌结合',4,'1974年','2009年'); | 
				
			|||
 | 
				
			|||
 INSERT INTO public.t_pump_information (id, structure_id, area, scale, water_type, elc_type, by_type, func, num, start_time, reinforce_time) VALUES (DEFAULT, | 
				
			|||
 3592, '富山乡', 2010,'空','6台180、6台155','1250、1650','排涝',12,'1983年','2008年'); | 
				
			|||
 | 
				
			|||
 INSERT INTO public.t_pump_information (id, structure_id, area, scale, water_type, elc_type, by_type, func, num, start_time, reinforce_time) VALUES (DEFAULT, | 
				
			|||
 3594, '东新乡', 60 ,'ZLB28—70轴流泵','Y—200T—4','80KVA箱式变压器','纯排',2,'2013年','空'); | 
				
			|||
 | 
				
			|||
 INSERT INTO public.t_pump_information (id, structure_id, area, scale, water_type, elc_type, by_type, func, num, start_time, reinforce_time) VALUES (DEFAULT, | 
				
			|||
 3595, '东新乡',260,'20ZLB—70轴流泵','Y67—130kw','315KVA箱式变压器','纯排',2,'2014年','空'); | 
				
			|||
 | 
				
			|||
 INSERT INTO public.t_pump_information (id, structure_id, area, scale, water_type, elc_type, by_type, func, num, start_time, reinforce_time) VALUES (DEFAULT, | 
				
			|||
 3593, '东新乡',240, 'ZLB28—70轴流泵','Y—200T—4','S9315KVA','排灌结合',3,'1974年','1992年'); | 
				
			|||
 | 
				
			|||
 INSERT INTO public.t_pump_information (id, structure_id, area, scale, water_type, elc_type, by_type, func, num, start_time, reinforce_time) VALUES (DEFAULT, | 
				
			|||
 3598, '东新乡', 340,'ZLB28—70轴流泵','Y—200T—4','S9315KVA','排灌结合',3,'1974年','1988年'); | 
				
			|||
 | 
				
			|||
 INSERT INTO public.t_pump_information (id, structure_id, area, scale, water_type, elc_type, by_type, func, num, start_time, reinforce_time) VALUES (DEFAULT, | 
				
			|||
 3597, '东新乡',260,'20ZLB—70轴流泵','Y67—130kw','S9_315KVA变压器','灌溉',2,'2014年','空'); | 
				
			|||
 | 
				
			|||
 INSERT INTO public.t_pump_information (id, structure_id, area, scale, water_type, elc_type, by_type, func, num, start_time, reinforce_time) VALUES (DEFAULT, | 
				
			|||
 3599, '富山乡',390, '空','空','空','排涝',3,'1973年','2008年'); | 
				
			|||
 | 
				
			|||
 | 
				
			|||
					Loading…
					
					
				
		Reference in new issue