文件名称:adv-sequelize:使用adv创建续集模型
文件大小:21KB
文件格式:ZIP
更新时间:2024-04-14 08:43:10
JavaScript
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
【文件预览】:
adv-sequelize-master
----package.json(1KB)
----tests()
--------index.js(4KB)
----LICENSE(1KB)
----package-lock.json(41KB)
----schemas()
--------index.js(232B)
----.gitignore(2KB)
----methods()
--------model()
--------column()
--------utils()
----parser.js(3KB)
----README.md(3KB)