using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WGShare.Domain.Enums;
using Yitter.IdGenerator;
namespace WGShare.Domain.Entities
{
///
/// 会议室在会记录
///
[SugarTable("meeting_record")]
public class MeetingRecord
{
///
///
///
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
public long Id { get; set; }
///
/// 事件类型
///
[SugarColumn(ColumnName = "event_type")]
public EventType EventType { get; set; }
///
/// 客户端序列号
///
[SugarColumn(ColumnName = "client_seq")]
public long clientSeq { get; set; }
///
/// 发生Unix时间戳
///
[SugarColumn(ColumnName = "ts")]
public long ts { get; set; }
///
/// 用户ID
///
[SugarColumn(ColumnName = "uid")]
public string uid { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnName = "create_time", IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
public DateTime CreateTime { get; set; }
///
/// 频道号
///
[SugarColumn(ColumnName = "channel_name")]
public string channelName { get; set; }
///
/// 客户端类型
///
[SugarColumn(ColumnName = "platform")]
public PlatformType platform { get; set; }
///
/// 离开原因
///
[SugarColumn(ColumnName = "leave_reason")]
public LeaveReasonEnum reason { get; set; }
///
/// 在会时长
///
[SugarColumn(ColumnName = "duration")]
public int duration { get; set; }
///
/// 字符串类型 用户id(声网返回)
///
[SugarColumn(ColumnName = "account")]
public string account { get; set; }
///
/// 用户名称
///
[SugarColumn(IsIgnore = true)]
public string userName { get; set; }
///
/// 用户账号
///
[SugarColumn(IsIgnore = true)]
public string UserAccount { get; set; }
///
/// 用户角色名称
///
[SugarColumn(IsIgnore = true)]
public string RoleName { get; set; }
}
}