Skip to content

Allow organisation creation by users #50

@TheMythologist

Description

@TheMythologist

The current workflow for a creation of a new organisation is for them to manually message us their IG details, and for us to manually create it.

Instead, I propose this to be the new workflow:

  1. Any users can create a request to create a new organisation
  2. Admins are allowed to approve these requests based on the request information provided
    • Note: On approval, the organisations should be automatically created

This will need the creation of a new publicly accessible page for users to create/manage their requests, a new admin dashboard to approve/reject these requests, as well as a new Prisma model proposed below:

enum RequestStatus {
    Pending
    Approved
    Rejected
}

model OrganisationCreationRequest {
    id          Int           @id @default(autoincrement())
    name        String
    description String        @default("An NUSC organisation")
    telegramUrl String?       @map("telegram_url")
    category    IGCategory
    createdBy   User          @relation(fields: [userId], references: [id], onDelete: Cascade, onUpdate: Cascade)
    userId      Int           @map("user_id")
    status      RequestStatus
    createdAt   DateTime      @default(now()) @map("created_at")

    @@map("organisation_creation_requests")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions