- mail_settings_controller for setting smtp settings - added view ror rjecting dataset for editor - added new model AppConfig for stroing appwide config values - better validate_chesum.ts command with process chunking - added vue3 apps 'BasicSettings' like email, profile settings - started with 2 multilingual capabilities - npm updates
This commit is contained in:
parent
010bead723
commit
b06ccae603
67 changed files with 7820 additions and 1463 deletions
33
app/models/appconfig.ts
Normal file
33
app/models/appconfig.ts
Normal file
|
@ -0,0 +1,33 @@
|
|||
import BaseModel from './base_model.js';
|
||||
import { column } from '@adonisjs/lucid/orm';
|
||||
|
||||
export default class AppConfig extends BaseModel {
|
||||
public static table = 'appconfigs'; // Specify the table name if it differs from the model name
|
||||
|
||||
@column({ isPrimary: true })
|
||||
public id: number;
|
||||
|
||||
@column()
|
||||
public appid: string;
|
||||
|
||||
@column()
|
||||
public configkey: string;
|
||||
|
||||
@column()
|
||||
public configvalue: string | null;
|
||||
|
||||
@column()
|
||||
public type: number;
|
||||
|
||||
@column()
|
||||
public lazy: number;
|
||||
|
||||
// async function setConfig(key: string, value: string) {
|
||||
// await this.updateOrCreate({ key }, { value })
|
||||
// }
|
||||
|
||||
// async function getConfig(key: string) {
|
||||
// const config = await this.findBy('key', key)
|
||||
// return config ? config.value : null
|
||||
// }
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue