Change localKey to foreignKey

This commit is contained in:
2021-08-16 22:06:45 +02:00
parent 2e9dda67fb
commit e22e0b55c5
5 changed files with 5 additions and 3 deletions

View File

@@ -4,8 +4,7 @@ import {HttpContextContract} from '@ioc:Adonis/Core/HttpContext'
export default class InformationUpdateValidator {
public schema = schema.create({
age: schema.number.optional(),
code: schema.string.optional(),
hiring_color: schema.string.optional()
code: schema.string.optional()
})
public messages = {
required: 'The field {{field}} is required'