@zodic/shared 0.0.285 → 0.0.286

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,6 +50,13 @@
50
50
  "when": 1742576766950,
51
51
  "tag": "0006_fine_manta",
52
52
  "breakpoints": true
53
+ },
54
+ {
55
+ "idx": 7,
56
+ "version": "6",
57
+ "when": 1742661456728,
58
+ "tag": "0007_typical_grim_reaper",
59
+ "breakpoints": true
53
60
  }
54
61
  ]
55
62
  }
package/db/schema.ts CHANGED
@@ -5,6 +5,7 @@ import {
5
5
  real,
6
6
  sqliteTable,
7
7
  text,
8
+ uniqueIndex,
8
9
  } from 'drizzle-orm/sqlite-core';
9
10
 
10
11
  export const timestampFields = {
@@ -350,6 +351,7 @@ export const userConcepts = sqliteTable(
350
351
  (t) => [
351
352
  index('user_concepts_user_id_idx').on(t.userId),
352
353
  index('user_concepts_concept_id_idx').on(t.conceptId),
354
+ uniqueIndex('user_concepts_unique_user_concept').on(t.userId, t.conceptId),
353
355
  ]
354
356
  );
355
357
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zodic/shared",
3
- "version": "0.0.285",
3
+ "version": "0.0.286",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -554,7 +554,8 @@ export type UserConceptData = {
554
554
  reel: any[]; // From conceptsData.reelImages (text, JSON-stringified array, parsed)
555
555
  };
556
556
  combinationString: string; // e.g., "sagittarius-aquarius-libra"
557
- conceptSlug: Concept;
557
+ conceptSlug: Concept;
558
+ imageIdx: number;
558
559
  };
559
560
 
560
561
  export type UserProfile = {