When I add a many-to-many relationship in typeORM entities, how can I add index to the relation columns?
@Entity()
export class Tag {
@Column()
id: number
//@Index() does not work here...
@ManyToMany(() => Todo, (todo) => todo.tags)
todos: Todo[];
......
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.