template sharing
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
||||
UpdateDateColumn,
|
||||
} from 'typeorm';
|
||||
import { ListTemplateEntity } from '../list-templates/list-template.entity';
|
||||
import { ListTemplateShareEntity } from '../list-templates/list-template-share.entity';
|
||||
import { UserListEntity } from '../lists/user-list.entity';
|
||||
import { UserListShareEntity } from '../lists/user-list-share.entity';
|
||||
import { RefreshTokenEntity } from './refresh-token.entity';
|
||||
@@ -63,4 +64,7 @@ export class UserEntity {
|
||||
|
||||
@OneToMany(() => UserListShareEntity, (share) => share.user)
|
||||
sharedLists?: UserListShareEntity[];
|
||||
|
||||
@OneToMany(() => ListTemplateShareEntity, (share) => share.user)
|
||||
sharedTemplates?: ListTemplateShareEntity[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user