ensure all users are members of all orgs

This commit is contained in:
Oliver Bryan
2026-01-08 18:00:31 +00:00
parent e02c53fc0c
commit 51093a46f5

View File

@@ -108,9 +108,13 @@ async function seed() {
console.log("adding organisation members...");
await db.insert(OrganisationMember).values([
{ organisationId: u1o1.id, userId: u1.id, role: "owner" },
{ organisationId: u1o1.id, userId: u2.id, role: "member" },
{ organisationId: u1o2.id, userId: u1.id, role: "owner" },
{ organisationId: u1o2.id, userId: u2.id, role: "member" },
{ organisationId: u2o1.id, userId: u2.id, role: "owner" },
{ organisationId: u2o1.id, userId: u1.id, role: "member" },
{ organisationId: u2o2.id, userId: u2.id, role: "owner" },
{ organisationId: u2o2.id, userId: u1.id, role: "member" },
]);
console.log("added organisation members");