TASKS-1823 WebManager module

This commit is contained in:
Igor Martyniuk
2026-08-28 08:35:58 +00:00
parent fdb2cf3837
commit c93d8c025b
654 changed files with 26232 additions and 6075 deletions
@@ -0,0 +1,21 @@
import { BaseSchema } from '@adonisjs/lucid/schema'
export default class extends BaseSchema {
protected tableName = 'web_settings'
async up() {
this.schema.createTable(this.tableName, (table) => {
table.increments('id')
table.string('locale', 16).notNullable().unique()
table.jsonb('header').notNullable().defaultTo('{}')
table.jsonb('footer').notNullable().defaultTo('{}')
table.jsonb('legal').notNullable().defaultTo('{}')
table.timestamp('created_at', { useTz: true }).notNullable()
table.timestamp('updated_at', { useTz: true }).notNullable()
})
}
async down() {
this.schema.dropTable(this.tableName)
}
}