roadie/Roadie.Api.Library/Data/ChatMessage.cs
2018-12-26 13:39:13 -06:00

24 lines
569 B
C#

using Roadie.Library.Identity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace Roadie.Library.Data
{
[Table("chatMessage")]
public class ChatMessage : EntityBase
{
public ApplicationUser User { get; set; }
[Column("userId")]
[Required]
public int UserId { get; set; }
[Column("message")]
[Required]
[MaxLength(5000)]
public string Message { get; set; }
}
}