Skip to content

SQL storage #216

Answered by Drarig29
NotADuplicate asked this question in Q&A
Mar 11, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hey @NotADuplicate! Glad you like the project!

I think this would be a great use of AI: this file in brackets-model defines all the types for Participant, Stage, Group, Round, Match and MatchGame.

You should be able to ask an AI to generate typeorm entities. I did it for you (with Copilot):

import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity()
export class Participant {
    @PrimaryGeneratedColumn()
    id: number;

    @Column()
    tournament_id: number;

    @Column()
    name: string;
}
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
import { StageSettings, StageType } from 'brackets-model';

@Entity()
export class Stage {
    @PrimaryGenerated…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Drarig29
Comment options

@NotADuplicate
Comment options

Answer selected by Drarig29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants