2023-06-01 00:03:23 -04:00
|
|
|
namespace vassago.Models;
|
|
|
|
|
2023-05-23 19:03:58 -04:00
|
|
|
using System;
|
2023-06-01 00:03:23 -04:00
|
|
|
using System.Collections.Generic;
|
2023-06-05 14:55:48 -04:00
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
using System.Reflection;
|
2023-05-23 19:03:58 -04:00
|
|
|
|
2023-06-15 23:29:07 -04:00
|
|
|
public class User //TODO: distinguish the user and their account
|
2023-05-23 19:03:58 -04:00
|
|
|
{
|
2023-06-05 14:55:48 -04:00
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
2023-06-01 00:03:23 -04:00
|
|
|
public Guid Id { get; set; }
|
|
|
|
public ulong? ExternalId { get; set; }
|
2023-06-05 14:55:48 -04:00
|
|
|
public string Username { get; set; } //TODO: display names. many protocols support this feature.
|
2023-06-01 00:03:23 -04:00
|
|
|
public bool IsBot { get; set; } //webhook counts
|
2023-06-05 14:55:48 -04:00
|
|
|
public Channel SeenInChannel { get; set; }
|
|
|
|
public string Protocol { get; set; }
|
2023-05-23 19:03:58 -04:00
|
|
|
}
|