diff --git a/services/collector/src/entities/session-fingerprint.entity.ts b/services/collector/src/entities/session-fingerprint.entity.ts index b594431..0e30973 100644 --- a/services/collector/src/entities/session-fingerprint.entity.ts +++ b/services/collector/src/entities/session-fingerprint.entity.ts @@ -153,6 +153,29 @@ export class SessionFingerprint { @Column({ type: 'boolean', nullable: true }) isTor?: boolean | null; + /** Government/law-enforcement/military/intelligence network detected */ + @Column({ type: 'boolean', nullable: true }) + isGovernment?: boolean | null; + + /** + * Organization type from gov-detection + * NORMAL | LIBRARY | EDUCATION | GOVERNMENT | LAW_ENFORCEMENT | MILITARY | INTELLIGENCE | UNKNOWN + */ + @Column({ type: 'varchar', length: 30, nullable: true }) + orgType?: string | null; + + /** Response tier from gov-detection: ALLOW | SOFT_BLOCK | HARD_BLOCK | ALERT */ + @Column({ type: 'varchar', length: 20, nullable: true }) + responseTier?: string | null; + + /** ASN organization name */ + @Column({ type: 'varchar', length: 200, nullable: true }) + org?: string | null; + + /** ASN number */ + @Column({ type: 'int', nullable: true }) + asn?: number | null; + /** IP hash for audit (NOT the actual IP) */ @Column({ type: 'varchar', length: 64, nullable: true }) ipHash?: string | null;