Some checks are pending
Bidi Control Character Guard / bidi-control-guard (push) Waiting to run
Circular Dependency Check / Check for new circular dependencies (push) Waiting to run
Citus Migration Smoke / Combined migrations on single-node Citus (push) Waiting to run
E2E Fresh Install Tests / fresh-install-e2e (push) Waiting to run
ext-v2 guardrails / Run ext-v2 guard and ESLint (push) Waiting to run
Integration Tests / Check for relevant changes (push) Waiting to run
Integration Tests / ${{ (github.event_name == 'schedule' || github.event.inputs.suite == 'full') && 'Full integration suite' || 'Tier-1 integration subset' }} (push) Blocked by required conditions
Mobile checks / Mobile lint + typecheck (push) Waiting to run
Mobile checks / Mobile unit tests (push) Waiting to run
Mobile checks / Mobile dependency audit (report) (push) Waiting to run
Mobile checks / Mobile reproducibility checks (push) Waiting to run
Secrets guard (env backups) / Ensure no tracked env backup files (push) Waiting to run
Temporal Readiness / fast-readiness (push) Waiting to run
Temporal Readiness / docker-parity (push) Waiting to run
TypeScript Type Check / Nx affected typecheck (push) Waiting to run
Unit Tests / Skipped-test budget (push) Waiting to run
Unit Tests / Nx affected unit tests (push) Waiting to run
Unit Tests / Server unit coverage (informational) (push) Waiting to run
Validate Tenant Management Schema / Check for relevant changes (push) Waiting to run
Validate Tenant Management Schema / Validate Tenant Management Schema (push) Blocked by required conditions
EE Workflows Build Guard / ee-workflows-build-guard (push) Waiting to run
Excluded: .git, node_modules, secrets/, compose.env, assemblyscript tgz Source: /opt/alga-psa on psa.joliet.tech
79 lines
3.0 KiB
JavaScript
79 lines
3.0 KiB
JavaScript
exports.seed = function(knex) {
|
|
return knex('tenants').select('tenant').first()
|
|
.then((tenant) => {
|
|
if (!tenant) return;
|
|
return knex('users').insert([
|
|
{
|
|
tenant: tenant.tenant,
|
|
username: 'glinda',
|
|
hashed_password: 'KIXQJZT7qLBlZB6rHn9e1uuEIYVVbIilJ',
|
|
first_name: 'Glinda',
|
|
last_name: 'Good',
|
|
email: 'glinda@emeraldcity.oz',
|
|
auth_method: 'magic',
|
|
created_at: knex.fn.now()
|
|
},
|
|
{
|
|
tenant: tenant.tenant,
|
|
username: 'dorothy',
|
|
hashed_password: 'LMNOQRST8pMCmD7sIn0f2vvFJZWWcJjmK',
|
|
first_name: 'Dorothy',
|
|
last_name: 'Gale',
|
|
email: 'dorothy@kansas.oz',
|
|
auth_method: 'ruby_slippers',
|
|
created_at: knex.fn.now()
|
|
},
|
|
{
|
|
tenant: tenant.tenant,
|
|
username: 'scarecrow',
|
|
hashed_password: 'PQRSTUVW9qNDnE8tJo1g3wwGKAXXdKknL',
|
|
first_name: 'Scarecrow',
|
|
last_name: 'Brainless',
|
|
email: 'scarecrow@cornfield.oz',
|
|
auth_method: 'straw',
|
|
created_at: knex.fn.now()
|
|
},
|
|
{
|
|
tenant: tenant.tenant,
|
|
username: 'tinman',
|
|
hashed_password: 'H34rtL3ssT1n',
|
|
first_name: 'Tin',
|
|
last_name: 'Woodman',
|
|
email: 'tinman@emeraldcity.oz',
|
|
auth_method: 'password',
|
|
created_at: knex.fn.now()
|
|
},
|
|
{
|
|
tenant: tenant.tenant,
|
|
username: 'madhatter',
|
|
hashed_password: 'T34T1m3P4rty!',
|
|
first_name: 'Mad',
|
|
last_name: 'Hatter',
|
|
email: 'hatter@wonderland.com',
|
|
auth_method: 'password',
|
|
created_at: knex.fn.now()
|
|
},
|
|
{
|
|
tenant: tenant.tenant,
|
|
username: 'cheshire',
|
|
hashed_password: 'Gr1nC4t789!',
|
|
first_name: 'Cheshire',
|
|
last_name: 'Cat',
|
|
email: 'cheshire@wonderland.com',
|
|
auth_method: 'password',
|
|
created_at: knex.fn.now()
|
|
},
|
|
{
|
|
tenant: tenant.tenant,
|
|
username: 'queenhearts',
|
|
hashed_password: 'H34d50ff123!',
|
|
first_name: 'Queen',
|
|
last_name: 'Hearts',
|
|
email: 'queen@wonderland.com',
|
|
auth_method: 'password',
|
|
created_at: knex.fn.now()
|
|
}
|
|
]);
|
|
});
|
|
};
|