How to use the CHAR function from sequelize

Find comprehensive JavaScript sequelize.CHAR code examples handpicked from public code repositorys.

17
18
19
20
21
22
23
24
25
26
  has_debts: {
    type: Sequelize.BOOLEAN,
    defaultValue: false
  },

  pubkey: Sequelize.CHAR(32).BINARY,

  batch_nonce: {type: Sequelize.INTEGER, defaultValue: 0}
},
{
fork icon16
star icon80
watch icon23

+ 3 other calls in file

23
24
25
26
27
28
29
30
31
32
*/

var Sequelize = require('sequelize');

exports._STRING    = Sequelize.STRING;
exports._CHAR      = Sequelize.CHAR;
exports._TEXT      = Sequelize.TEXT;
exports._INTEGER   = Sequelize.INTEGER;
exports._BIGINT    = Sequelize.BIGINT;
exports._BIGINT0   = Sequelize.BIGINT;
fork icon10
star icon15
watch icon25

+ 9 other calls in file

13
14
15
16
17
18
19
20
21
22
type: {
  type: Sequelize.ENUM,
  values: ['dgp', 'qrc20', 'qrc721'],
  allowNull: true
},
bytecodeSha256sum: Sequelize.CHAR(32).BINARY,
description: {
  type: Sequelize.TEXT,
  defaultValue: ''
}
fork icon31
star icon13
watch icon5

+ 9 other calls in file

34
35
36
37
38
39
40
41
42
43
  || type instanceof Sequelize.UUIDV1
  || type instanceof Sequelize.UUIDV4) {
  return { type: addNull ? ['string', 'null'] : 'string', format: 'uuid' };
}

if (type instanceof Sequelize.CHAR
  || type instanceof Sequelize.STRING
  || type instanceof Sequelize.TEXT
  || type instanceof Sequelize.UUID
  || type instanceof Sequelize.DATE
fork icon22
star icon0
watch icon15

+ 2 other calls in file