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.
36 lines
968 B
36 lines
968 B
4 years ago
|
'use strict';
|
||
|
const {
|
||
|
Model
|
||
|
} = require('sequelize');
|
||
|
module.exports = (sequelize, DataTypes) => {
|
||
|
class User extends Model {
|
||
|
/**
|
||
|
* Helper method for defining associations.
|
||
|
* This method is not a part of Sequelize lifecycle.
|
||
|
* The `models/index` file will call this method automatically.
|
||
|
*/
|
||
|
static associate(models) {
|
||
|
// define association here
|
||
|
}
|
||
|
};
|
||
|
User.init({
|
||
|
firstName: DataTypes.STRING,
|
||
|
lastName: DataTypes.STRING,
|
||
|
fatherName: DataTypes.STRING,
|
||
|
codeMelli: DataTypes.INTEGER,
|
||
|
workUnit: DataTypes.STRING,
|
||
|
workUnitCode: DataTypes.INTEGER,
|
||
|
address: DataTypes.TEXT,
|
||
|
obligationNumber: DataTypes.INTEGER,
|
||
|
obligationDate: DataTypes.DATE,
|
||
|
requestNumber: DataTypes.INTEGER,
|
||
|
requestDate: DataTypes.DATE,
|
||
|
writtenOrderNumber: DataTypes.INTEGER,
|
||
|
writtenOrderDate: DataTypes.DATE,
|
||
|
deadline: DataTypes.INTEGER
|
||
|
}, {
|
||
|
sequelize,
|
||
|
modelName: 'User',
|
||
|
});
|
||
|
return User;
|
||
|
};
|