Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
trainee-schedule
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Đoàn Vũ Bình Dương
trainee-schedule
Commits
790d2b2e
Commit
790d2b2e
authored
Apr 13, 2026
by
Blockchain-vn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: warning - API description.md
parent
d505ed0d
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
305 additions
and
456 deletions
+305
-456
API_DESCRIPTION.md
API_DESCRIPTION.md
+305
-453
Course.ts
src/models/Course.ts
+0
-1
Term.ts
src/models/Term.ts
+0
-1
UserSession.ts
src/models/mongodb/UserSession.ts
+0
-1
No files found.
API_DESCRIPTION.md
View file @
790d2b2e
This diff is collapsed.
Click to expand it.
src/models/Course.ts
View file @
790d2b2e
...
...
@@ -125,7 +125,6 @@ CourseSchema.virtual('availableSlots').get(function (this: ICourse) {
});
// Index for better query performance
CourseSchema
.
index
({
code
:
1
});
CourseSchema
.
index
({
status
:
1
});
CourseSchema
.
index
({
instructor
:
1
});
CourseSchema
.
index
({
name
:
'text'
});
...
...
src/models/Term.ts
View file @
790d2b2e
...
...
@@ -79,7 +79,6 @@ const TermSchema: Schema = new Schema({
});
// Index for better query performance
TermSchema
.
index
({
name
:
1
},
{
unique
:
true
});
TermSchema
.
index
({
status
:
1
});
TermSchema
.
index
({
startDate
:
1
,
endDate
:
1
});
TermSchema
.
index
({
name
:
'text'
});
...
...
src/models/mongodb/UserSession.ts
View file @
790d2b2e
...
...
@@ -53,7 +53,6 @@ const UserSessionSchemaEntity: Schema = new Schema(
// TTL index to automatically remove expired sessions
UserSessionSchemaEntity
.
index
({
refresh_expires_at
:
1
},
{
expireAfterSeconds
:
0
});
UserSessionSchemaEntity
.
index
({
session_token
:
1
});
UserSessionSchemaEntity
.
index
({
user
:
1
});
export
const
UserSession
=
mongoose
.
models
.
UserSession
||
mongoose
.
model
<
IUserSession
>
(
'UserSession'
,
UserSessionSchemaEntity
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment