|
|
@ -29,7 +29,7 @@ export class User implements IUser { |
|
|
|
@Column() |
|
|
|
@Column() |
|
|
|
passwordHash: string = ""; |
|
|
|
passwordHash: string = ""; |
|
|
|
|
|
|
|
|
|
|
|
@ManyToMany(type => SprinklersDevice) |
|
|
|
@ManyToMany(type => SprinklersDevice, device => device.users) |
|
|
|
@JoinTable({ name: "user_sprinklers_device" }) |
|
|
|
@JoinTable({ name: "user_sprinklers_device" }) |
|
|
|
devices: SprinklersDevice[] | undefined; |
|
|
|
devices: SprinklersDevice[] | undefined; |
|
|
|
|
|
|
|
|
|
|
|