mirror of
https://github.com/sphildreth/roadie
synced 2024-11-10 06:44:12 +00:00
23 lines
No EOL
577 B
C#
23 lines
No EOL
577 B
C#
using Roadie.Library.Identity;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Roadie.Library.Data
|
|
{
|
|
[Table("chatMessage")]
|
|
public class ChatMessage : EntityBase
|
|
{
|
|
[Column("message")]
|
|
[Required]
|
|
[MaxLength(5000)]
|
|
public string Message { get; set; }
|
|
|
|
[ForeignKey(nameof(UserId))]
|
|
[InverseProperty("ChatMessages")]
|
|
public virtual User User { get; set; }
|
|
|
|
[Column("userId")]
|
|
[Required]
|
|
public int UserId { get; set; }
|
|
}
|
|
} |