mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
defer session create
This commit is contained in:
@@ -4,7 +4,6 @@ import { DateTimeTransformer } from '../utils/DateTimeTransformer';
|
||||
import { TrackedEntity } from '../utils/TrackedEntity.entity';
|
||||
|
||||
@Entity()
|
||||
@Index(['address', 'clientName', 'sessionId'], { unique: true })
|
||||
export class ClientEntity extends TrackedEntity {
|
||||
|
||||
@PrimaryGeneratedColumn()
|
||||
@@ -20,7 +19,8 @@ export class ClientEntity extends TrackedEntity {
|
||||
@Column({ length: 128, type: 'varchar', nullable: true })
|
||||
userAgent: string;
|
||||
|
||||
@Column({ length: 8, type: 'varchar' })
|
||||
@Index()
|
||||
@Column({ length: 8, type: 'varchar', unique: true })
|
||||
sessionId: string;
|
||||
|
||||
@Column({ type: 'datetime', transformer: new DateTimeTransformer() })
|
||||
|
||||
Reference in New Issue
Block a user