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.
		
		
		
		
		
			
		
			
				
					
					
						
							40 lines
						
					
					
						
							956 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							40 lines
						
					
					
						
							956 B
						
					
					
				| /* eslint-disable*/ | |
| 'use strict'; | |
| 
 | |
| module.exports = dc => { | |
|    const DataTypes = dc.ORM; | |
|    const sequelize = dc.orm; | |
|    const AxProject = sequelize.define("axProject", { | |
|       id: { | |
|          type: DataTypes.INTEGER, | |
|          allowNull: false, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: true, | |
|          field: "id", | |
|          autoIncrement: false, | |
|          unique: "ax_project_id_uindex" | |
|       }, | |
|       name: { | |
|          type: DataTypes.STRING, | |
|          allowNull: false, | |
|          defaultValue: null, | |
|          comment: null, | |
|          primaryKey: false, | |
|          field: "name", | |
|          autoIncrement: false | |
|       } | |
|    }, { | |
|       tableName: "ax_project", | |
|       comment: "", | |
|       indexes: [] | |
|    }); | |
| 
 | |
|    const Nvr = dc.models.Nvr; | |
| 
 | |
|    // Nvr.belongsTo(User, { foreignKey: 'userId', targetKey: 'id' }); | |
|    // User.hasMany(Nvr, { foreignKey: 'userId', sourceKey: 'id' }); | |
|  | |
|    dc.models.AxProject = AxProject; | |
|    return AxProject; | |
| }; |