Add initial project files

This commit is contained in:
Igor Martyniuk
2026-09-01 13:03:41 +03:00
parent 22e111bb44
commit 74cb5b6176
1841 changed files with 242819 additions and 30 deletions
@@ -0,0 +1,14 @@
import { BaseModel, column } from '@adonisjs/lucid/orm'
import { DateTime } from 'luxon'
export default class Permission extends BaseModel {
static searchable = {
string: ['name', 'slug'],
number: ['id'],
}
@column({ isPrimary: true }) declare id: number
@column() declare name: string
@column() declare slug: string
@column.dateTime({ columnName: 'created_at' }) declare createdAt: DateTime | null
@column.dateTime({ columnName: 'updated_at' }) declare updatedAt: DateTime | null
}