-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhoneOrderRecord.cs
More file actions
107 lines (75 loc) · 2.99 KB
/
PhoneOrderRecord.cs
File metadata and controls
107 lines (75 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using SmartTalk.Core.Domain.Account;
using SmartTalk.Core.Domain.Restaurants;
using SmartTalk.Messages.Enums.PhoneOrder;
using SmartTalk.Messages.Enums.STT;
namespace SmartTalk.Core.Domain.PhoneOrder;
[Table("phone_order_record")]
public class PhoneOrderRecord : IEntity
{
[Key]
[Column("id")]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[Column("agent_id")]
public int AgentId { get; set; }
[Column("assistant_id")]
public int? AssistantId { get; set; }
[Column("session_id")]
public string SessionId { get; set; }
[Column("status")]
public PhoneOrderRecordStatus Status { get; set; } = PhoneOrderRecordStatus.Recieved;
[Column("tips")]
public string Tips { get; set; }
[Column("transcription_text")]
public string TranscriptionText { get; set; }
[Column("url")]
public string Url { get; set; }
[Column("language")]
public TranscriptionLanguage Language { get; set; }
[Column("manual_order_id")]
public long? ManualOrderId { get; set; }
[Column("last_modified_by")]
public int? LastModifiedBy { get; set; }
[Column("last_modified_date")]
public DateTimeOffset? LastModifiedDate { get; set; }
[Column("created_date")]
public DateTimeOffset CreatedDate { get; set; }
[Column("transcription_job_id")]
public string TranscriptionJobId { get; set; }
[Column("order_status")]
public PhoneOrderOrderStatus OrderStatus { get; set; } = PhoneOrderOrderStatus.Pending;
[Column("phone_number"), StringLength(50)]
public string PhoneNumber { get; set; }
[Column("customer_name"), StringLength(50)]
public string CustomerName { get; set; }
[Column("comments")]
public string Comments { get; set; }
[Column("duration")]
public double? Duration { get; set; }
[Column("is_transfer")]
public bool? IsTransfer { get; set; }
[Column("incoming_call_number"), StringLength(36)]
public string IncomingCallNumber { get; set; }
[Column("order_id"), StringLength(1024)]
public string OrderId { get; set; }
[Column("conversation_text")]
public string ConversationText { get; set; }
[Column("order_record_type")]
public PhoneOrderRecordType OrderRecordType { get; set; }
[Column("is_customer_friendly")]
public bool? IsCustomerFriendly { get; set; }
[Column("is_human_answered")]
public bool? IsHumanAnswered { get; set; }
[NotMapped]
public UserAccount UserAccount { get; set; }
[Column("last_modified_by_name")]
public string LastModifiedByName { get; set; }
[NotMapped]
public Restaurant RestaurantInfo { get; set; }
[Column("parent_record_id")]
public int? ParentRecordId { get; set; }
[Column("is_completed")]
public bool IsCompleted { get; set; } = false;
}