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.
		
		
		
		
		
			
		
			
				
					
					
						
							70 lines
						
					
					
						
							1.5 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							70 lines
						
					
					
						
							1.5 KiB
						
					
					
				| /* eslint-disable*/ | |
| 'use strict'; | |
| 
 | |
| module.exports = dc => { | |
|   const DataTypes = dc.ORM; | |
|   const sequelize = dc.orm; | |
|   const ProjectDisclosure = sequelize.define("projectDisclosure", { | |
|     id: { | |
|       type: DataTypes.INTEGER, | |
|       allowNull: false, | |
|       defaultValue: null, | |
|       comment: null, | |
|       primaryKey: true, | |
|       field: "id", | |
|       autoIncrement: true, | |
|       unique: "project_disclosure_id_uindex" | |
|     }, | |
|     siteId: { | |
|       type: DataTypes.INTEGER, | |
|       allowNull: false, | |
|       defaultValue: null, | |
|       comment: null, | |
|       primaryKey: false, | |
|       field: "site_id", | |
|       autoIncrement: false | |
|     }, | |
|     type: { | |
|       type: DataTypes.STRING, | |
|       allowNull: false, | |
|       defaultValue: null, | |
|       comment: null, | |
|       primaryKey: false, | |
|       field: "type", | |
|       autoIncrement: false | |
|     }, | |
|     desc: { | |
|       type: DataTypes.STRING, | |
|       allowNull: true, | |
|       defaultValue: null, | |
|       comment: null, | |
|       primaryKey: false, | |
|       field: "desc", | |
|       autoIncrement: false | |
|     }, | |
|     submiter: { | |
|       type: DataTypes.INTEGER, | |
|       allowNull: false, | |
|       defaultValue: null, | |
|       comment: null, | |
|       primaryKey: false, | |
|       field: "submiter", | |
|       autoIncrement: false | |
|     }, | |
|     submitTime: { | |
|       type: DataTypes.DATE, | |
|       allowNull: false, | |
|       defaultValue: null, | |
|       comment: null, | |
|       primaryKey: false, | |
|       field: "submit_time", | |
|       autoIncrement: false | |
|     } | |
|   }, { | |
|     tableName: "project_disclosure", | |
|     comment: "", | |
|     indexes: [] | |
|   }); | |
|   dc.models.ProjectDisclosure = ProjectDisclosure; | |
|   return ProjectDisclosure; | |
| }; |