chamesu
Version:
This package contains all packages of the chat application.
54 lines (44 loc) • 1.06 kB
text/typescript
/*
* Copyright (c) 2022.
* Author Peter Placzek (tada5hi)
* For the full copyright and license information,
* view the LICENSE file that was distributed with this source code.
*/
import {
Column,
CreateDateColumn,
Entity,
JoinColumn,
ManyToOne,
PrimaryGeneratedColumn,
UpdateDateColumn
} from "typeorm";
import {AuthUser} from "../user";
export class AuthContact {
id: string;
/*
First user (userId1 < userId2)
*/
user_one_id: number;
user_one: AuthUser;
/*
Second User (userid2 > userId1)
*/
user_two_id: number;
user_two: AuthUser;
/*
Meta
*/
created_at: string;
updated_at: string
}