- additional functionality for DatasetController.ts
All checks were successful
CI Pipeline / japa-tests (push) Successful in 47s
All checks were successful
CI Pipeline / japa-tests (push) Successful in 47s
- additional validation rules like 'uniqueArray' - additional Lucid models like BaseModel.ts for filling attributes, Title.ts, Description.ts - npm updates for @adonisjs/core
This commit is contained in:
parent
c4f4eff0d9
commit
e0ff71b117
44 changed files with 2002 additions and 1556 deletions
|
@ -12,7 +12,7 @@ export default class DatasetTitles extends BaseSchema {
|
|||
.foreign('document_id', 'dataset_titles_document_id_foreign')
|
||||
.references('id')
|
||||
.inTable('documents')
|
||||
.onDelete('CASCADE') // delete this titke when document is deleted
|
||||
.onDelete('CASCADE') // delete this title when document is deleted
|
||||
.onUpdate('CASCADE');
|
||||
// table.string('type', 255).notNullable();
|
||||
table.enum('type', Object.values(TitleTypes)).notNullable();
|
||||
|
|
|
@ -20,6 +20,7 @@ export default class Persons extends BaseSchema {
|
|||
table.integer('registered_at');
|
||||
// table.string('name_type', 255);
|
||||
table.enum('name_type', Object.values(PersonNameTypes)).notNullable();
|
||||
table.timestamp('created_at', { useTz: false }).nullable();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue