mirror of https://github.com/xfarrow/blink
update
This commit is contained in:
parent
ca5e201dc4
commit
10aa3460a3
|
@ -23,8 +23,8 @@ const createOrganizationValidator = [
|
|||
check('location').trim().escape().isLength({
|
||||
max: 256
|
||||
}),
|
||||
check('description').trim().escape(),
|
||||
check('is_hiring').isBoolean()
|
||||
check('description').optional().trim().escape(),
|
||||
check('isHiring').optional().isBoolean()
|
||||
];
|
||||
|
||||
const updateOrganizationValidator = [
|
||||
|
@ -34,8 +34,8 @@ const updateOrganizationValidator = [
|
|||
check('location').trim().escape().isLength({
|
||||
max: 256
|
||||
}),
|
||||
check('description').trim().escape(),
|
||||
check('is_hiring').optional().isBoolean()
|
||||
check('description').optional().trim().escape(),
|
||||
check('isHiring').optional().isBoolean()
|
||||
];
|
||||
|
||||
const deleteOrGetOrganizationValidator = [
|
||||
|
|
|
@ -31,7 +31,8 @@ CREATE TABLE IF NOT EXISTS "Organization" (
|
|||
id SERIAL PRIMARY KEY,
|
||||
name CHARACTER VARYING(128) NOT NULL,
|
||||
location CHARACTER VARYING,
|
||||
description TEXT
|
||||
description TEXT,
|
||||
is_hiring BOOLEAN
|
||||
);
|
||||
|
||||
-- Table: OrganizationAdministrator
|
||||
|
|
Loading…
Reference in New Issue