Added Experiences and Formations

This commit is contained in:
2021-08-16 22:32:44 +02:00
parent 7a5a246177
commit 98f9402de4
11 changed files with 324 additions and 31 deletions

View File

@@ -0,0 +1,19 @@
import { schema } from '@ioc:Adonis/Core/Validator'
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext'
export default class ExperienceStoreValidator {
constructor (protected ctx: HttpContextContract) {
}
public schema = schema.create({
title: schema.string(),
company: schema.string(),
location: schema.string(),
beginDate: schema.string(),
endDate: schema.string()
})
public messages = {
required: 'The field {{field}} is required'
}
}