
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
adonis-schema-builder
Advanced tools
Quickly create adonis migrations, seeds, models and tests for AdonisJS from a schema json file
Build adonis migrations, factories and models with pre-configured relationships from Database Schema.
Based on a schema-builder for laravel and using the same schema format as schema-builder.
This package works with AdonisJS v4. In your project directory you'll need ace, fold and cli installed:
npm install --save @adonisjs/ace @adonisjs/cli @adonisjs/fold
These are all peer dependencies so you will get a warning from NPM if they're not installed first. Then install adonis-schema-builder:
npm install --save adonis-schema-builder
Add the following to your aceProviders
array in start/app.js
:
'adonis-schema-builder/providers/BuilderProvider'
You should now see the schema:build
option when running adonis
or ace
.
Use the schema-builder GUI to design your schema, and export as JSON. All of the table and column options in the schema builder are supported, although some column types might be substituted to supported Knex types.
Run adonis schema:build <path to schema file>
in your project root to import the schema file and generate source files. You will be asked to confirm before overwriting any existing files.
FAQs
Quickly create adonis migrations, seeds, models and tests for AdonisJS from a schema json file
We found that adonis-schema-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.