- Docker infrastructure (Dockerfile, docker-compose.yml, genieacs-sim) - AdonisJS v7 app with Inertia.js + Vue 3 - MongoDB integration - CWMP/TR-069 state machine engine - Configuration engine with compliance tracking - Branding: ADAM ACS (favicon, navbar, locales) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
32 lines
821 B
TypeScript
32 lines
821 B
TypeScript
import { BaseSchema } from '@adonisjs/lucid/schema'
|
|
|
|
export default class extends BaseSchema {
|
|
protected tableName = 'auth_access_tokens'
|
|
|
|
async up() {
|
|
this.schema.createTable(this.tableName, (table) => {
|
|
table.increments('id')
|
|
table
|
|
.integer('tokenable_id')
|
|
.notNullable()
|
|
.unsigned()
|
|
.references('id')
|
|
.inTable('users')
|
|
.onDelete('CASCADE')
|
|
|
|
table.string('type').notNullable()
|
|
table.string('name').nullable()
|
|
table.string('hash').notNullable()
|
|
table.text('abilities').notNullable()
|
|
table.timestamp('created_at')
|
|
table.timestamp('updated_at')
|
|
table.timestamp('last_used_at').nullable()
|
|
table.timestamp('expires_at').nullable()
|
|
})
|
|
}
|
|
|
|
async down() {
|
|
this.schema.dropTable(this.tableName)
|
|
}
|
|
}
|