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

90 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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()
deletedByUser!: User;
@Column()
phoneNumber!: string;
@Column()
locality!: string;
@Column()
region!: string;
@Column()
capabilities!: {
@Column()
MMS!: boolean;
@Column()
SMS!: boolean;
@Column()
voice!: boolean;
};
@Column()
routingSchema!: {
@Column()
type!: Object;
@Column()
} /*RoutingSchema!: {
@Column()
type!: team-member || schedule
@Column()
id!: 'schedule' || 'teamMember'
@Column()
introtext!: 'string';
@Column()
introAudio!: 'tone mongo storage name';
@Column()
introAudioName!: 'original audio name';
} */;
@Column()
sid!: string;
@Column()
price!: string;
@Column()
priceUnit!: string;
@Column()
countryCode!: string;
@Column()
numberType!: string;
@Column()
stripeSubscriptionId!: string;
}