You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							161 lines
						
					
					
						
							3.8 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							161 lines
						
					
					
						
							3.8 KiB
						
					
					
				| /* eslint-disable*/ | |
| 'use strict'; | |
| 
 | |
| module.exports = dc => { | |
|    const DataTypes = dc.ORM; | |
|    const sequelize = dc.orm; | |
|    const GbCamera = sequelize.define("gbCamera", { | |
|       id: { | |
|          type: DataTypes.INTEGER, | |
|          allowNull: false, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: true, | |
|          field: "id", | |
|          autoIncrement: true, | |
|          unique: "gbcamera_id_uindex" | |
|       }, | |
|       level: { | |
|          type: DataTypes.INTEGER, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "level", | |
|          autoIncrement: false | |
|       }, | |
|       parent: { | |
|          type: DataTypes.STRING, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "parent", | |
|          autoIncrement: false | |
|       }, | |
|       streamid: { | |
|          type: DataTypes.STRING, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "streamid", | |
|          autoIncrement: false | |
|       }, | |
|       registerTime: { | |
|          type: DataTypes.DATEONLY, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "registerTime", | |
|          autoIncrement: false | |
|       }, | |
|       updateTime: { | |
|          type: DataTypes.DATEONLY, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "updateTime", | |
|          autoIncrement: false | |
|       }, | |
|       online: { | |
|          type: DataTypes.STRING, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "online", | |
|          autoIncrement: false | |
|       }, | |
|       manufactuer: { | |
|          type: DataTypes.STRING, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "manufactuer", | |
|          autoIncrement: false | |
|       }, | |
|       model: { | |
|          type: DataTypes.STRING, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "model", | |
|          autoIncrement: false | |
|       }, | |
|       civilCode: { | |
|          type: DataTypes.STRING, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "civilCode", | |
|          autoIncrement: false | |
|       }, | |
|       adddress: { | |
|          type: DataTypes.STRING, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "adddress", | |
|          autoIncrement: false | |
|       }, | |
|       name: { | |
|          type: DataTypes.STRING, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "name", | |
|          autoIncrement: false | |
|       }, | |
|       addr: { | |
|          type: DataTypes.STRING, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "Addr", | |
|          autoIncrement: false | |
|       }, | |
|       sipip: { | |
|          type: DataTypes.STRING, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "Sipip", | |
|          autoIncrement: false | |
|       }, | |
|       ipctype: { | |
|          type: DataTypes.STRING, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "ipctype", | |
|          autoIncrement: false | |
|       }, | |
|       playUrl: { | |
|          type: DataTypes.JSONB, | |
|          allowNull: true, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "playUrl", | |
|          autoIncrement: false | |
|       } | |
|    }, { | |
|       tableName: "gbCamera", | |
|       comment: "", | |
|       indexes: [] | |
|    }); | |
| 
 | |
|    dc.models.GbCamera = GbCamera; | |
|    return GbCamera; | |
| }; |