|
@@ -18,7 +18,7 @@ export class Session extends Model<
|
|
InferAttributes<Session>,
|
|
InferAttributes<Session>,
|
|
InferCreationAttributes<Session>
|
|
InferCreationAttributes<Session>
|
|
> {
|
|
> {
|
|
- declare sessionId: ObjectIdType;
|
|
|
|
|
|
+ declare _id: ObjectIdType;
|
|
|
|
|
|
declare userId: ForeignKey<User["_id"]>;
|
|
declare userId: ForeignKey<User["_id"]>;
|
|
|
|
|
|
@@ -40,7 +40,7 @@ export class Session extends Model<
|
|
}
|
|
}
|
|
|
|
|
|
export const schema = {
|
|
export const schema = {
|
|
- sessionId: {
|
|
|
|
|
|
+ _id: {
|
|
type: DataTypes.OBJECTID,
|
|
type: DataTypes.OBJECTID,
|
|
allowNull: false,
|
|
allowNull: false,
|
|
primaryKey: true
|
|
primaryKey: true
|