Horje
Sequelize model datatype of enum Code Example
Sequelize model datatype of enum
const Person = sequelize.define('model', {
  name: {
	type: Sequelize.STRING
  },
  gender: {
    type:   Sequelize.ENUM,
    values: ['Male', 'Female', 'Others']
  },
  bloodGroup: {
    type:   Sequelize.ENUM('A', 'B', 'AB', 'O')
  }
});

console.log(Person.rawAttributes.gender.values);
// log output => ['Male', 'Female', 'Others']
console.log(Person.rawAttributes.bloodGroup.values);
// log output => ['A', 'B', 'AB', 'O']




Sql

Related
union and union all Code Example union and union all Code Example
dbms transaction tutorialspoint Code Example dbms transaction tutorialspoint Code Example
undefined get_magic_quotes_gpc() in sqlite Code Example undefined get_magic_quotes_gpc() in sqlite Code Example
Aktor yang pernah terlibat lebih dari 3 film di sql Code Example Aktor yang pernah terlibat lebih dari 3 film di sql Code Example
mysql make date from 2 column Code Example mysql make date from 2 column Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7