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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ node_modules
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
.VSCODECounter
Engine API
.vscode/settings.json
apps/engine/src/cache/rediscache.ts.timestamp-*
apps/engine/.env
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"editor.defaultFormatter": "svelte.svelte-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"editor.formatOnSave": true,
"dbmlERDPreviewer.preferredTheme": "light",
"cSpell.words": [
"emplid"
]
}
}
Binary file modified apps/database/bun.lockb
Binary file not shown.
Empty file removed apps/engine/.gitignore
Empty file.
Binary file modified apps/engine/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion apps/engine/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ services:
retries: 5
volumes:
postgres_data:
redis_data:
redis_data:
156 changes: 38 additions & 118 deletions apps/engine/drizzle/meta/0000_snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,8 @@
"name": "analytics_user_id_users_id_fk",
"tableFrom": "analytics",
"tableTo": "users",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["user_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
Expand Down Expand Up @@ -92,36 +88,25 @@
"name": "course_department_map_course_id_courses_id_fk",
"tableFrom": "course_department_map",
"tableTo": "courses",
"columnsFrom": [
"course_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["course_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
"course_department_map_department_code_departments_code_fk": {
"name": "course_department_map_department_code_departments_code_fk",
"tableFrom": "course_department_map",
"tableTo": "departments",
"columnsFrom": [
"department_code"
],
"columnsTo": [
"code"
],
"columnsFrom": ["department_code"],
"columnsTo": ["code"],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {
"course_department_map_course_id_department_code_pk": {
"name": "course_department_map_course_id_department_code_pk",
"columns": [
"course_id",
"department_code"
]
"columns": ["course_id", "department_code"]
}
},
"uniqueConstraints": {},
Expand Down Expand Up @@ -152,36 +137,25 @@
"name": "course_instructor_map_course_id_courses_id_fk",
"tableFrom": "course_instructor_map",
"tableTo": "courses",
"columnsFrom": [
"course_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["course_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
"course_instructor_map_instructor_id_instructors_netid_fk": {
"name": "course_instructor_map_instructor_id_instructors_netid_fk",
"tableFrom": "course_instructor_map",
"tableTo": "instructors",
"columnsFrom": [
"instructor_id"
],
"columnsTo": [
"netid"
],
"columnsFrom": ["instructor_id"],
"columnsTo": ["netid"],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {
"course_instructor_map_course_id_instructor_id_pk": {
"name": "course_instructor_map_course_id_instructor_id_pk",
"columns": [
"course_id",
"instructor_id"
]
"columns": ["course_id", "instructor_id"]
}
},
"uniqueConstraints": {},
Expand Down Expand Up @@ -299,12 +273,8 @@
"name": "custom_events_user_id_users_id_fk",
"tableFrom": "custom_events",
"tableTo": "users",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["user_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
Expand Down Expand Up @@ -399,12 +369,8 @@
"name": "evaluations_course_id_courses_id_fk",
"tableFrom": "evaluations",
"tableTo": "courses",
"columnsFrom": [
"course_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["course_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
Expand Down Expand Up @@ -458,12 +424,8 @@
"name": "feedback_user_id_users_id_fk",
"tableFrom": "feedback",
"tableTo": "users",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["user_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
Expand Down Expand Up @@ -509,25 +471,17 @@
"name": "icals_user_id_users_id_fk",
"tableFrom": "icals",
"tableTo": "users",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["user_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
"icals_schedule_id_schedules_id_fk": {
"name": "icals_schedule_id_schedules_id_fk",
"tableFrom": "icals",
"tableTo": "schedules",
"columnsFrom": [
"schedule_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["schedule_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
Expand Down Expand Up @@ -654,36 +608,25 @@
"name": "schedule_course_map_schedule_id_schedules_id_fk",
"tableFrom": "schedule_course_map",
"tableTo": "schedules",
"columnsFrom": [
"schedule_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["schedule_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
"schedule_course_map_course_id_courses_id_fk": {
"name": "schedule_course_map_course_id_courses_id_fk",
"tableFrom": "schedule_course_map",
"tableTo": "courses",
"columnsFrom": [
"course_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["course_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {
"schedule_course_map_schedule_id_course_id_pk": {
"name": "schedule_course_map_schedule_id_course_id_pk",
"columns": [
"schedule_id",
"course_id"
]
"columns": ["schedule_id", "course_id"]
}
},
"uniqueConstraints": {},
Expand Down Expand Up @@ -714,36 +657,25 @@
"name": "schedule_event_map_schedule_id_schedules_id_fk",
"tableFrom": "schedule_event_map",
"tableTo": "schedules",
"columnsFrom": [
"schedule_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["schedule_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
"schedule_event_map_custom_event_id_custom_events_id_fk": {
"name": "schedule_event_map_custom_event_id_custom_events_id_fk",
"tableFrom": "schedule_event_map",
"tableTo": "custom_events",
"columnsFrom": [
"custom_event_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["custom_event_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {
"schedule_event_map_schedule_id_custom_event_id_pk": {
"name": "schedule_event_map_schedule_id_custom_event_id_pk",
"columns": [
"schedule_id",
"custom_event_id"
]
"columns": ["schedule_id", "custom_event_id"]
}
},
"uniqueConstraints": {},
Expand Down Expand Up @@ -799,12 +731,8 @@
"name": "schedules_user_id_users_id_fk",
"tableFrom": "schedules",
"tableTo": "users",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["user_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
Expand Down Expand Up @@ -894,12 +822,8 @@
"name": "sections_course_id_courses_id_fk",
"tableFrom": "sections",
"tableTo": "courses",
"columnsFrom": [
"course_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["course_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
Expand Down Expand Up @@ -966,11 +890,7 @@
"public.status": {
"name": "status",
"schema": "public",
"values": [
"open",
"closed",
"canceled"
]
"values": ["open", "closed", "canceled"]
}
},
"schemas": {},
Expand All @@ -983,4 +903,4 @@
"schemas": {},
"tables": {}
}
}
}
2 changes: 1 addition & 1 deletion apps/engine/drizzle/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"breakpoints": true
}
]
}
}
16 changes: 9 additions & 7 deletions apps/engine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,20 @@
"type": "module",
"scripts": {
"start": "bun ./src/main.ts",
"dev": "bun ./src/main.ts",
"cli": "bun ./src/cli.ts",
"format": "prettier --write .",
"lint": "eslint .",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:studio": "drizzle-kit studio",
"db:schema": "bun src/db/generate-dbml.ts",
"docker:up": "docker-compose up -d",
"docker:down": "docker-compose down",
"docker:logs": "docker-compose logs -f",
"docker:restart": "docker-compose restart",
"docker:ps": "docker-compose ps",
"docker:clean": "docker-compose down -v"
"docker:up": "docker compose up -d",
"docker:down": "docker compose down",
"docker:logs": "docker compose logs -f",
"docker:restart": "docker compose restart",
"docker:ps": "docker compose ps",
"docker:clean": "docker compose down -v"
},
"dependencies": {
"@fastify/sensible": "^6.0.3",
Expand All @@ -26,7 +27,8 @@
"fastify": "^5.5.0",
"fastify-plugin": "^5.0.1",
"jsdom": "^26.1.0",
"pg": "^8.16.3"
"pg": "^8.16.3",
"redis": "^4.6.0"
},
"devDependencies": {
"@eslint/js": "^9.34.0",
Expand Down
Loading