collab
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
} from 'typeorm';
|
||||
import { ListTemplateEntity } from '../list-templates/list-template.entity';
|
||||
import { UserListEntity } from '../lists/user-list.entity';
|
||||
import { UserListShareEntity } from '../lists/user-list-share.entity';
|
||||
import { RefreshTokenEntity } from './refresh-token.entity';
|
||||
|
||||
@Entity('users')
|
||||
@@ -59,4 +60,7 @@ export class UserEntity {
|
||||
|
||||
@OneToMany(() => UserListEntity, (list) => list.owner)
|
||||
lists?: UserListEntity[];
|
||||
|
||||
@OneToMany(() => UserListShareEntity, (share) => share.user)
|
||||
sharedLists?: UserListShareEntity[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user