Skip to content

Commit

Permalink
Merge pull request #5406 from novuhq/add_external_id_to_users_and_org…
Browse files Browse the repository at this point in the history
…anizations

feat(auth-v2): Add externalId to user and organizations
  • Loading branch information
SokratisVidros authored Apr 15, 2024
2 parents 22f2880 + cb51655 commit ad31c9f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/dal/src/repositories/organization/organization.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export class OrganizationEntity implements IOrganizationEntity {
createdAt: string;

updatedAt: string;

externalId?: string;
}

export type OrganizationDBModel = OrganizationEntity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const organizationSchema = new Schema<OrganizationDBModel>(
default: false,
},
},
externalId: Schema.Types.String,
},
schemaOptions
);
Expand Down
2 changes: 2 additions & 0 deletions libs/dal/src/repositories/user/user.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export class UserEntity implements IUserEntity {
servicesHashes?: { intercom?: string };

jobTitle?: JobTitleEnum;

externalId?: string;
}

export type UserDBModel = UserEntity;
1 change: 1 addition & 0 deletions libs/dal/src/repositories/user/user.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const userSchema = new Schema<UserDBModel>(
intercom: Schema.Types.String,
},
jobTitle: Schema.Types.String,
externalId: Schema.Types.String,
},
schemaOptions
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ export interface IOrganizationEntity {
productUseCases?: ProductUseCases;
createdAt: string;
updatedAt: string;
externalId?: string;
}
1 change: 1 addition & 0 deletions libs/shared/src/entities/user/user.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ export interface IUserEntity {
showOnBoardingTour?: number;
servicesHashes?: IServicesHashes;
jobTitle?: JobTitleEnum;
externalId?: string;
}

0 comments on commit ad31c9f

Please sign in to comment.