이전
다음

Sequelize



ORM for Node.js


Data Type

Sequelize.STRING                    //--- VARCHAR(255)
Sequelize.STRING(~)                 //--- VARCHAR(~)
Sequelize.STRING.BINARY             //--- VARCHAR BINARY
Sequelize.TEXT                      //--- TEXT
Sequelize.TEXT('medium')              //--- TINYTEXT, MEDIUMTEXT, LONGTEXT
Sequelize.BLOB                      //--- BLOB
Sequelize.BLOB('tiny')              //--- TINYBLOB, MEDIUMBLOB, LONGBLOB

Sequelize.ENUM('~', '~')              //--- ENUM
Sequelize.UUID                      //--- UUID
Sequelize.JSON                      //--- JSON

Sequelize.INTEGER                   //--- INTEGER
Sequelize.BIGINT                    //--- BIGINT
Sequelize.BIGINT(~)                 //--- BIGINT(~)

Sequelize.FLOAT                        //--- FLOAT와 DOUBLE은 사용법이 같음
Sequelize.FLOAT(~)                     //--- FLOAT(~)
Sequelize.FLOAT(~, ~)                 //--- FLOAT(~, ~)

Sequelize.DECIMAL                   //--- DECIMAL
Sequelize.DECIMAL(~, ~)                //--- DECIMAL(~, ~)

Sequelize.BOOLEAN                   //--- TINYINT(1)

Sequelize.DATE                      //--- DATETIME
Sequelize.DATEONLY                  //--- DATE without time.

Sequelize.GEOMETRY                  //--- Spatial
Sequelize.GEOMETRY('POINT')         //--- Spatial
Sequelize.GEOMETRY('POINT', ~)      //--- Spatial

이전
다음
공유하기