commit
						5e747aedaa
					
				
				 2 changed files with 181 additions and 0 deletions
			
			
		| @ -0,0 +1,42 @@ | ||||
| import _ from "lodash"; | ||||
| import BaseModel from "~src/models/BaseModel"; | ||||
| 
 | ||||
| export default class drinkWaterUnit extends BaseModel { | ||||
|   schema = { | ||||
|     ...this.schema, | ||||
|     name: { | ||||
|       type: this.DataTypes.STRING, | ||||
|       allowNull: false, | ||||
|       desc: "نام", | ||||
|     }, | ||||
|     brand: { | ||||
|       type: this.DataTypes.STRING, | ||||
|       allowNull: false, | ||||
|       desc: "برند", | ||||
|     }, | ||||
|     rate: { | ||||
|       type: this.DataTypes.ENUM("A", "B", "C", "D"), | ||||
|       allowNull: false, | ||||
|       desc: "رتبه", | ||||
|     }, | ||||
|     cityName: { | ||||
|       type: this.DataTypes.STRING, | ||||
|       allowNull: false, | ||||
|       desc: "نام شهر/شهرستان", | ||||
|     }, | ||||
|     universityName: { | ||||
|       type: this.DataTypes.STRING, | ||||
|       allowNull: false, | ||||
|       desc: "نام دانشگاه", | ||||
|     }, | ||||
|     workflowId: { | ||||
|       type: this.DataTypes.INTEGER, | ||||
|       allowNull: true, | ||||
|       desc: "شناسه روند کار", | ||||
|     }, | ||||
|   }; | ||||
| 
 | ||||
|   add = Object.keys(_.omit(this.schema, ["id"])); | ||||
|   updateList = this.add; | ||||
|   getList = this.add; | ||||
| } | ||||
					Loading…
					
					
				
		Reference in new issue