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.
42 lines
966 B
42 lines
966 B
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; |
|
}
|
|
|