Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ DATABASE_PORT=5432
DATABASE_NAME=your_database_name
DATABASE_USER=your_database_user
DATABASE_PASSWORD=your_database_password
LLM_API_KEY=your_llm_api_key
10 changes: 10 additions & 0 deletions database/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,16 @@ CREATE TABLE activity_logs (
display_metadata JSONB NOT NULL DEFAULT '{}'
);

CREATE TABLE chat_logs (
id SERIAL PRIMARY KEY,
user_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE,
organisation_id INTEGER REFERENCES organisations(id) ON DELETE SET NULL,
course_id INTEGER REFERENCES courses(id) ON DELETE SET NULL,
module_id INTEGER REFERENCES modules(id) ON DELETE SET NULL,
question TEXT NOT NULL,
answer TEXT NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
);


COMMIT;
132 changes: 132 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"jest": "^29.7.0"
},
"dependencies": {
"axios": "^1.10.0",
"bcrypt": "^6.0.0",
"cookie-parser": "^1.4.7",
"dotenv": "^16.5.0",
Expand Down
Loading