Class TicketStatusHistoryTableInfo
Table 'ticket_status_history': This table contains the history of a tickets statuses. Each time a ticket changes status a copy of the previous status of the record will be saved
Implements
Inherited Members
Namespace: SuperOffice.CRM.Data
Assembly: SoDataBase.dll
Syntax
[DatabaseTable("ticket_status_history")]
public class TicketStatusHistoryTableInfo : TableInfo, ICloneable
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
Fields
DictionaryTableName
Conceptual name of table TicketStatusHistory in the database dictionary: ticket_status_history
Declaration
public const string DictionaryTableName = "ticket_status_history"
Field Value
Type | Description |
---|---|
string |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
Properties
Definition
Definition of the table as described in the deployed runtime dictionary
Declaration
public override SoTable Definition { get; }
Property Value
Type | Description |
---|---|
SoTable |
Overrides
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
DictionaryTableNumber
Table number for table TicketStatusHistory in the database dictionary; potentially changes between databases, but always the same over the lifetime of any single database
Declaration
public int DictionaryTableNumber { get; }
Property Value
Type | Description |
---|---|
int |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
FromDatetime
Field 'from_datetime' in table 'ticket_status_history': Dictionary type DateTime, .NET type: DateTime
Declaration
public DateTimeFieldInfo FromDatetime { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
RealTimespan
Field 'real_timespan' in table 'ticket_status_history': Dictionary type Int, .NET type: int
The time (seconds) the ticket was in that status. Not calculated based on priority's timeframe.Declaration
public Int32FieldInfo RealTimespan { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
RuntimeDefinition
Definition of the table as described in the deployed runtime dictionary
Declaration
[Obsolete("Use instance property Definition or static member DictionaryTableNumber", true)]
public static SoTable RuntimeDefinition { get; }
Property Value
Type | Description |
---|---|
SoTable |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
TicketId
Field 'ticket_id' in table 'ticket_status_history': Dictionary type FK, target: Ticket, .NET type: int
Reference to a ticketDeclaration
public Int32FieldInfo TicketId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
TicketId_InnerJoin_Ticket
Generated join from the foreign key TicketId in this table, to its target table TicketTableInfo.
Declaration
public TargetedInnerJoin<TicketTableInfo> TicketId_InnerJoin_Ticket { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<TicketTableInfo> |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
TicketStatus
Field 'ticket_status' in table 'ticket_status_history': Dictionary type FK, target: TicketStatus, .NET type: int
User defined ticket statusDeclaration
public Int32FieldInfo TicketStatus { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
TicketStatusHistoryId
Field 'id' in table 'ticket_status_history': Dictionary type PK, .NET type: int
The primary key (auto-incremented)Declaration
public Int32FieldInfo TicketStatusHistoryId { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
TicketStatus_InnerJoin_TicketStatus
Generated join from the foreign key TicketStatus in this table, to its target table TicketStatusTableInfo.
Declaration
public TargetedInnerJoin<TicketStatusTableInfo> TicketStatus_InnerJoin_TicketStatus { get; }
Property Value
Type | Description |
---|---|
TargetedInnerJoin<TicketStatusTableInfo> |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
Timespan
Field 'timespan' in table 'ticket_status_history': Dictionary type Int, .NET type: int
The time (seconds) the ticket was in that status. Calculated based on priority's timeframe.Declaration
public Int32FieldInfo Timespan { get; }
Property Value
Type | Description |
---|---|
Int32FieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().
ToDatetime
Field 'to_datetime' in table 'ticket_status_history': Dictionary type DateTime, .NET type: DateTime
Declaration
public DateTimeFieldInfo ToDatetime { get; }
Property Value
Type | Description |
---|---|
DateTimeFieldInfo |
Remarks
An instance of this class represents one instance of this table in an SQL statement. In most
cases each table appears only once in a SELECT, but in cases where you need to self-join, or
there are multiple occurrences for other reasons (typically additional restrictions in the joins),
then you will need multiple instances.
Instances of this class are created by calling TablesInfo.GetTicketStatusHistoryInfo().