oneuptime/Common/Models/IncomingCallRoutingLog.ts
Simon Larsen f0c0715f36
fix
2022-04-29 20:52:23 +01:00

67 lines
1016 B
TypeScript

import { Column, Entity, Index } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
import Project from './Project';
@Entity({
name: "UserAlerts"
})
export default class Model extends BaseModel{
@Column()
project!: Project;
@Column()
callRouting: { type: string, ref: 'CallRouting', index!: true };
@Column()
deletedByUser!: User;
@Column()
callSid!: string;
@Column()
price!: string;
@Column()
calledFrom!: string;
@Column()
calledTo!: string;
@Column()
duration!: string;
@Column()
dialTo!: [
{
@Column()
callSid!: string;
@Column()
user!: User; // User that call was forwarded to
@Column()
schedule: { type: string, ref: 'Schedule', index!: true }; // Schedule || ''
@Column()
phoneNumber!: string; // Phone number that call was forwarded to
@Column()
status!: string; // Completed/in progress/...
};
];
}