Add unique index
This commit is contained in:
parent
c610e5ed9b
commit
b9a6e551cd
2 changed files with 14 additions and 0 deletions
|
@ -4,6 +4,7 @@ import { UserList } from './user-list';
|
|||
import { id } from '../id';
|
||||
|
||||
@Entity()
|
||||
@Index(['userId', 'userListId'], { unique: true })
|
||||
export class UserListJoining {
|
||||
@PrimaryColumn(id())
|
||||
public id: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue