mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 17:15:03 -07:00
33 lines
533 B
TypeScript
33 lines
533 B
TypeScript
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
|
import { TrackedEntity } from '../utils/TrackedEntity.entity';
|
|
|
|
@Entity()
|
|
export class ClientEntity extends TrackedEntity {
|
|
|
|
@PrimaryGeneratedColumn()
|
|
id: number;
|
|
|
|
|
|
@Column({ length: 62, type: 'varchar' })
|
|
address: string;
|
|
|
|
@Column()
|
|
clientName: string;
|
|
|
|
@Column({ length: 8, type: 'varchar' })
|
|
sessionId: string;
|
|
|
|
@Column({ type: 'datetime' })
|
|
startTime: Date;
|
|
|
|
|
|
|
|
@Column({ default: 0 })
|
|
bestDifficulty: number
|
|
|
|
|
|
|
|
}
|
|
|