feat(collector): ✨ Add fingerprint fields to SessionFingerprint for enhanced session tracking and privacy compliance
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
0e5e4dff58
commit
1a092d168b
1 changed files with 2 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import {
|
|||
CreateDateColumn,
|
||||
UpdateDateColumn,
|
||||
Index,
|
||||
Unique,
|
||||
} from 'typeorm';
|
||||
|
||||
/**
|
||||
|
|
@ -13,7 +14,7 @@ import {
|
|||
* IP addresses are NEVER stored - only hashed for audit purposes
|
||||
*/
|
||||
@Entity('session_fingerprints')
|
||||
@Index(['sessionId'], { unique: true })
|
||||
@Unique(['sessionId'])
|
||||
@Index(['userId'])
|
||||
@Index(['trafficSource'])
|
||||
@Index(['createdAt'])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue