Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
b3d2522
Add organisation settings endpoint
lavanyagarg112 May 24, 2025
1140426
Call api endpoint to update settings
lavanyagarg112 May 24, 2025
48ae020
Update readme
lavanyagarg112 May 24, 2025
112e909
Add endpoint to add course
lavanyagarg112 May 29, 2025
9c5d833
Add endpoint to get courses
lavanyagarg112 May 29, 2025
19efbac
Add endpoint to delete course
lavanyagarg112 May 29, 2025
1d5df47
Add endpoint to edit and get course details
lavanyagarg112 May 29, 2025
0ac499d
update table to have unique course name per organisation only
lavanyagarg112 May 29, 2025
67538bb
Add endpoint to get module
lavanyagarg112 May 29, 2025
dcc4c67
Add endpoint for add module
lavanyagarg112 May 29, 2025
9d97f1d
Add endpoint for deleting module
lavanyagarg112 May 29, 2025
ad6ce63
Add get module endpoint
lavanyagarg112 May 29, 2025
4006f17
Add line to mkdir if it doesnt exist
lavanyagarg112 May 29, 2025
4a7f7d7
Add line to mkdir if it doesnt exist
lavanyagarg112 May 29, 2025
394ab41
Add endpoint to edit module
lavanyagarg112 May 29, 2025
66bb1d5
clean code
lavanyagarg112 May 29, 2025
0e9b6b7
Add endpoint to get users in an organisation
lavanyagarg112 May 29, 2025
cac13be
Add endpoint to remove users from org
lavanyagarg112 May 29, 2025
62a014c
fix bug related to viewing of courses
lavanyagarg112 May 29, 2025
dbf76d4
Add invitation id for organisations
lavanyagarg112 May 29, 2025
ca426ec
Fix organisation joining bug
lavanyagarg112 May 29, 2025
3b13c8e
Merge pull request #14 from lavanyagarg112/lavanya/organisation-dashb…
lavanyagarg112 May 29, 2025
0db1530
Employee onboards using invite code only
lavanyagarg112 Jun 8, 2025
3fc87ab
Merge pull request #15 from lavanyagarg112/lavanya/fix-invite-code
lavanyagarg112 Jun 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules
/.env
/.env
/uploads
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ This is the backend for skillstack platform.

5. Start the server
```bash
node server.js
npm run server
```
9 changes: 6 additions & 3 deletions database/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ CREATE TABLE organisations (
REFERENCES users(id) ON DELETE NO ACTION,
description TEXT NOT NULL DEFAULT '',
ai_enabled BOOLEAN NOT NULL DEFAULT FALSE,
current_invitation_id TEXT UNIQUE,
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
UNIQUE(organisation_name, admin_user_id)
);
Expand All @@ -40,11 +41,12 @@ CREATE TABLE courses (
id SERIAL PRIMARY KEY,
organisation_id INTEGER NOT NULL
REFERENCES organisations(id) ON DELETE CASCADE,
name VARCHAR(255) NOT NULL UNIQUE,
name VARCHAR(255) NOT NULL,
description TEXT,
created_by INTEGER
REFERENCES users(id) ON DELETE SET NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
UNIQUE(organisation_id, name)
);

CREATE TABLE enrollments (
Expand All @@ -68,7 +70,8 @@ CREATE TABLE modules (
title VARCHAR(255) NOT NULL,
module_type VARCHAR(50) NOT NULL, -- e.g. 'video', 'quiz', 'pdf'
description TEXT,
position INTEGER NOT NULL DEFAULT 0
position INTEGER NOT NULL DEFAULT 0,
file_url TEXT NOT NULL
);

CREATE TABLE revisions (
Expand Down
Loading