gives live meta an owner
This commit is contained in:
parent
e9c5d5c1b2
commit
db5e4ef113
1 changed files with 12 additions and 1 deletions
34
src/Yavsc.Server/Models/Streaming/LiveFlow.cs
Normal file
34
src/Yavsc.Server/Models/Streaming/LiveFlow.cs
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using Yavsc.Models;
|
||||
|
||||
namespace Yavsc.ViewModels.Streaming
|
||||
{
|
||||
|
||||
public class LiveFlow {
|
||||
|
||||
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
[Display(Name="FlowId")]
|
||||
// set by the server, unique
|
||||
long Id { get; set; }
|
||||
|
||||
// a title for this flow
|
||||
string Title { get; set; }
|
||||
|
||||
// a little description
|
||||
string Pitch { get; set; }
|
||||
|
||||
// The stream type
|
||||
string MediaType { get; set; }
|
||||
|
||||
// A name where to save this stream, relative to user's files root
|
||||
string DifferedFileName { get; set; }
|
||||
|
||||
[Required]
|
||||
public string OwnerId {get; set; }
|
||||
|
||||
[ForeignKey("OwnerId")]
|
||||
public virtual ApplicationUser Owner { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue