forked from adam/discord-bot-shtik
All checks were successful
gitea.arg.rip/vassago/pipeline/head This commit looks good
see #19. see #9.
28 lines
885 B
C#
28 lines
885 B
C#
namespace vassago.Models;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Reflection;
|
|
using System.Threading.Tasks;
|
|
using Discord.WebSocket;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
public class Message
|
|
{
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public Guid Id { get; set; }
|
|
public string Protocol { get; set; }
|
|
public string ExternalId { get; set; }
|
|
public string Content { get; set; }
|
|
public string TranslatedContent { get; set; }
|
|
public bool MentionsMe { get; set; }
|
|
public DateTimeOffset Timestamp { get; set; }
|
|
public bool ActedOn { get; set; }
|
|
[DeleteBehavior(DeleteBehavior.Cascade)]
|
|
public List<Attachment> Attachments { get; set; }
|
|
public Account Author { get; set; }
|
|
public Channel Channel { get; set; }
|
|
public Guid? ChannelId { get; set; }
|
|
}
|