%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/opti/workflow/src/models/
Upload File :
Create Path :
Current File : /home/opti/workflow/src/models/person.js

'use strict';

module.exports = (sequelize, DataTypes) => {
  const Person = sequelize.define('Person', {
    uuid: {
      type: DataTypes.UUID,
      defaultValue: DataTypes.UUIDV4
    },
    orgId: DataTypes.INTEGER,
    salutation: DataTypes.STRING,
    firstName: DataTypes.STRING,
    lastName: DataTypes.STRING,
    address: DataTypes.STRING,
    middleName: DataTypes.STRING,
    gender: DataTypes.INTEGER,
    suffix: DataTypes.STRING,
    passport: DataTypes.STRING,
    birthDate: DataTypes.DATE,
    email: DataTypes.STRING,
    phoneNo: DataTypes.STRING,
    maritalStatus: DataTypes.INTEGER
  }, {});
  Person.associate = function(models) {
    // associations can be defined here
    Person.hasOne(models.Contact);

  };
  return Person;
};

Zerion Mini Shell 1.0