Move db context out of the main api project

This commit is contained in:
2021-12-28 19:40:29 -08:00
parent 5d206ded1b
commit 7cd388c85b
4 changed files with 76 additions and 1 deletions

View File

@@ -0,0 +1,38 @@
#nullable disable
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace TwilioSMSReceiver.Data.Models
{
public class SMSModel
{
[Key]
public int Id { get; set; }
[Required]
public string ReceivedNumber { get; set; }
[Required]
public string SenderNumber { get; set; }
public DateTime TimeReceived { get; set; }
public string? MessageContents { get; set; }
public ICollection<MMSModel> MMSContent { get; set; }
public bool IsForwardedYet { get; set; }
}
public class MMSModel
{
[Key]
public int Id { get; set; }
public int SMSModelId { get; set; }
public SMSModel ParentSMSMessage { get; set; }
public string OriginalMMSData { get; set; }
}
public class MSTeamsWebHook
{
public int Id { get; set; }
public string WebHookUri { get; set; }
}
}