mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
refactor: container
This commit is contained in:
1 parent
075e21fb89
commit
64215d3ef1
7 files changed
+128
-24
No files matched your search
@@ -1,10 +1,10 @@
|
||||
import mongoose from 'mongoose'
|
||||
|
||||
export { User } from './user.js'
|
||||
export { User, IUser } from './user.js'
|
||||
export { Quest, IQuest } from './quest.js'
|
||||
export { Session } from './session.js'
|
||||
export { Session, ISession } from './session.js'
|
||||
export { Command, ICommand } from './command.js'
|
||||
export { UserProfile } from './userProfile.js'
|
||||
export { UserProfile, IUserProfile } from './userProfile.js'
|
||||
|
||||
export default async function connectDB(uri: string) {
|
||||
const db = await mongoose.connect(uri)
|
||||
|
||||
@@ -44,7 +44,7 @@ const taskSchema = new Schema<ITask>({
|
||||
export interface ISession {
|
||||
user: Types.ObjectId
|
||||
quest: string
|
||||
containerId: string
|
||||
containerId: string | null
|
||||
status: string
|
||||
createdAt: Date
|
||||
updatedAt: Date
|
||||
|
||||
Reference in new issue
Block a user