nicolas-arnaud
2 years ago
6 changed files with 27 additions and 31 deletions
@ -1,17 +0,0 @@ |
|||
import { Entity, JoinColumn, OneToOne, PrimaryColumn } from 'typeorm' |
|||
|
|||
import Channel from './channel.entity' |
|||
import User from 'src/users/entity/user.entity' |
|||
|
|||
@Entity() |
|||
export default class ConnectedUser { |
|||
@OneToOne(() => User) |
|||
user: User |
|||
|
|||
@OneToOne(() => Channel) |
|||
@JoinColumn() |
|||
channel: Channel |
|||
|
|||
@PrimaryColumn() |
|||
socket: string |
|||
} |
Loading…
Reference in new issue