Skip to content

Commit

Permalink
feat(database): add indexes to non-fulluser schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Aug 3, 2023
1 parent e12cec5 commit 0b218b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/src/modules/inventory/inventoryitem.schema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { IInventoryItem } from '@interfaces';
import {
Entity,
Index,
PrimaryKey,
Property,
SerializedPrimaryKey,
Expand All @@ -15,6 +16,7 @@ export class InventoryItem implements IInventoryItem {
@SerializedPrimaryKey({ hidden: true })
id!: string;

@Index()
@Property({ hidden: true })
userId: string;

Expand Down
2 changes: 2 additions & 0 deletions server/src/modules/market/marketitem.schema.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { IMarketItem, IMarketItemMeta } from '@interfaces';
import {
Entity,
Index,
PrimaryKey,
Property,
SerializedPrimaryKey,
Expand All @@ -18,6 +19,7 @@ export class MarketItem implements IMarketItem {
@Property()
createdAt: Date;

@Index()
@Property({ hidden: true })
userId: string;

Expand Down
1 change: 1 addition & 0 deletions server/src/modules/notification/notification.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export class Notification implements INotification {
@SerializedPrimaryKey()
id!: string;

@Index()
@Property({ hidden: true })
userId: string;

Expand Down

0 comments on commit 0b218b1

Please sign in to comment.