import { Model } from 'objection';

class Role extends Model {
    static tableName = 'roles';
}

const defaultRoleName = 'Contributer';

// Hardcoded role IDs for manager and contributor roles
// Must update these if the DB ever gets updated
const managerRoleId = 3;
const contributorRoleId = 4;
const techSupportRoleId = 6;

export { Role as default, defaultRoleName, managerRoleId, contributorRoleId, techSupportRoleId };

import { Model } from 'objection';

class Role extends Model {
    static tableName = 'roles';
}

const defaultRoleName = 'Contributor';

// Hardcoded role IDs for manager and contributor roles
// Must update these if the DB ever gets updated
const managerRoleId = 3;
const contributorRoleId = 4;
const techSupportRoleId = 6;

export { Role as default, defaultRoleName, managerRoleId, contributorRoleId, techSupportRoleId };

Rename Contributer (sic) role to Contributor
Rename Contributer (sic) role to Contributor

The role spelling has been fixed in the database on the live and QA
servers, so the code needs to know about the new default.
