'use strict'
/** @type {import('@adonisjs/lucid/src/Schema')} */const Schema = use('Schema')
class PostsSchema extends Schema { up() { this.create('posts', (table) => { table.increments() table.string('title', 255).notNullable().unique() table.text('content').notNullable() table.boolean('isDraft').defaultTo(false) table.timestamps() }) }
down() { this.drop('posts') }}
module.exports = PostsSchema