AI Implementation feature(867): Admin Area Players Management (#56)

This commit was merged in pull request #56.
This commit is contained in:
2026-07-23 08:08:50 +00:00
parent 705530e71f
commit e4ccf0fe13
27 changed files with 2039 additions and 218 deletions
@@ -8,6 +8,7 @@ import {
JoinColumn,
} from 'typeorm';
import { ChallengeEntity } from './challenge.entity';
import { UserEntity } from './user.entity';
@Entity('solve')
@Unique('uq_solve_challenge_user', ['challengeId', 'userId'])
@@ -27,6 +28,10 @@ export class SolveEntity {
@Column('text', { name: 'user_id' })
userId!: string;
@ManyToOne(() => UserEntity, { onDelete: 'CASCADE' })
@JoinColumn({ name: 'user_id' })
user?: UserEntity;
@Column('text', { name: 'solved_at' })
solvedAt!: string;