|
|
@ -11,7 +11,6 @@ export class Friendship extends Model<Friendship> {
|
|
|
|
* The id of the first user
|
|
|
|
* The id of the first user
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ForeignKey(() => User)
|
|
|
|
@ForeignKey(() => User)
|
|
|
|
@PrimaryKey
|
|
|
|
|
|
|
|
@NotNull
|
|
|
|
@NotNull
|
|
|
|
@Column({allowNull: false})
|
|
|
|
@Column({allowNull: false})
|
|
|
|
public userId: number;
|
|
|
|
public userId: number;
|
|
|
@ -20,7 +19,6 @@ export class Friendship extends Model<Friendship> {
|
|
|
|
* The id of the second user
|
|
|
|
* The id of the second user
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ForeignKey(() => User)
|
|
|
|
@ForeignKey(() => User)
|
|
|
|
@PrimaryKey
|
|
|
|
|
|
|
|
@NotNull
|
|
|
|
@NotNull
|
|
|
|
@Column({allowNull: false})
|
|
|
|
@Column({allowNull: false})
|
|
|
|
public friendId: number;
|
|
|
|
public friendId: number;
|
|
|
|