feat : working on word submission

This commit is contained in:
2024-12-29 01:17:19 +01:00
parent 3a513042f4
commit de8b4c5000
17 changed files with 164 additions and 19 deletions
+23
View File
@@ -0,0 +1,23 @@
import { User } from 'src/users/entities/user.entity';
import {
Column,
Entity,
JoinTable,
ManyToMany,
ManyToOne,
OneToMany,
PrimaryGeneratedColumn,
Unique,
} from 'typeorm';
import { Word } from './word.entity';
@Entity()
export class Topic {
@PrimaryGeneratedColumn()
id: number;
name: string;
@ManyToMany((type) => Word, (word) => word.topics)
words: Word[];
}