chamesu
Version:
This package contains all packages of the chat application.
61 lines (47 loc) • 1.37 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 {AuthContact} from "../contact";
import {AuthUser} from "../user";
export class AuthContactData {
id: string;
type: string;
encrypted: boolean;
content: string | number | Record<string, any>;
contact_id: string;
contact: AuthContact;
from_user_id: number;
from_user: AuthUser;
to_user_id: number;
to_user: AuthUser;
created_at: string;
updated_at: string;
}