feat: enhance database management with new migration and database node functionalities, including CRUD operations and test cases
This commit is contained in:
@ -3,11 +3,12 @@ import { Query } from "../../query/entities/query.entity";
|
||||
import {
|
||||
Column,
|
||||
Entity,
|
||||
JoinColumn,
|
||||
OneToMany,
|
||||
OneToOne,
|
||||
PrimaryGeneratedColumn,
|
||||
} from "typeorm";
|
||||
import { Database } from "src/databaseManager/entities/database.entity";
|
||||
import { Database } from "../../databaseManager/entities/database.entity";
|
||||
|
||||
@Entity("project")
|
||||
export class Project {
|
||||
@ -21,6 +22,7 @@ export class Project {
|
||||
apiTokens: Token[];
|
||||
|
||||
@OneToOne(() => Database, (database) => database.project)
|
||||
@JoinColumn()
|
||||
database: Database;
|
||||
|
||||
@OneToMany(() => Query, (query) => query.project)
|
||||
|
||||
Reference in New Issue
Block a user