Skip to content

Commit

Permalink
user context
Browse files Browse the repository at this point in the history
  • Loading branch information
fontanierh committed Sep 1, 2023
1 parent c747191 commit 5185134
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions front/lib/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1290,6 +1290,13 @@ export class AssistantUserMessage extends Model<
> {
declare id: number;
declare message: string;

declare userContextUsername: string;
declare userContextTimezone: string;
declare userContextFullName: string | null;
declare userContextEmail: string | null;
declare userContextProfilePictureUrl: string | null;

declare userId: ForeignKey<User["id"]>;
}

Expand All @@ -1304,6 +1311,26 @@ AssistantUserMessage.init(
type: DataTypes.TEXT,
allowNull: false,
},
userContextUsername: {
type: DataTypes.STRING,
allowNull: false,
},
userContextTimezone: {
type: DataTypes.STRING,
allowNull: false,
},
userContextFullName: {
type: DataTypes.STRING,
allowNull: true,
},
userContextEmail: {
type: DataTypes.STRING,
allowNull: true,
},
userContextProfilePictureUrl: {
type: DataTypes.STRING,
allowNull: true,
},
},
{
modelName: "assistant_user_message",
Expand Down

0 comments on commit 5185134

Please sign in to comment.