Files
upo-senior-assistant/SeniorAssistant/Models/Message.cs
Giacomo Bertolazzi 20015159 1246116804 Besciamello (#1)
* Fixed login & auth
* Added dynamic breadcrumb
* Added DOC
* Added Patient
* Added Notifications
* Added Messages
* Refactoring api
* Re-writed menu
* Removed unused things
* Created README
2019-01-15 21:35:00 +01:00

27 lines
545 B
C#

using LinqToDB.Mapping;
using System;
namespace SeniorAssistant.Models
{
public class Message : IHasTime
{
[Column(IsPrimaryKey = true, CanBeNull = false, IsIdentity = true)]
public int Id { get; set; }
[NotNull]
public DateTime Time { get; set; }
[NotNull]
public string Username { get; set; }
[NotNull]
public string Reciver { get; set; }
[NotNull]
public string Body { get; set; }
public bool Seen { get; set; }
}
}