adv sequelize:使用adv创建续集模型 源码
ADV-sequelize 创建进阶语法sequelize模型 用法 const createModel = require ( 'adv-sequelize' ) ; const Sequelize = require ( 'sequelize' ) ; const sequalize = new Sequelize ( ) ; const Types = sequalize . DataTypes ; const Ajv = require ( 'ajv' ) . default ; const ajv = new Ajv ( ) ; const define = function ( code ) { return createModel ( code , { sequalize , ajv , defaultJsonType
用户评论