forked from xiongyuxing/tiku-backend.net
feat: add student video and profile experience
This commit is contained in:
@@ -155,6 +155,21 @@ public sealed class QuestionVideo : AuditableTenantEntity
|
||||
public JsonElement Metadata { get; set; } = JsonDefaults.Object();
|
||||
}
|
||||
|
||||
public sealed class VideoPlaybackProgress : AuditableTenantEntity
|
||||
{
|
||||
public Guid UserId { get; set; }
|
||||
public Guid VideoId { get; set; }
|
||||
public Guid? QuestionId { get; set; }
|
||||
public int PositionSeconds { get; set; }
|
||||
public int? DurationSeconds { get; set; }
|
||||
public int WatchedSeconds { get; set; }
|
||||
public bool IsCompleted { get; set; }
|
||||
public DateTimeOffset? CompletedAt { get; set; }
|
||||
public DateTimeOffset LastPlayedAt { get; set; } = DateTimeOffset.UtcNow;
|
||||
public int PlayCount { get; set; }
|
||||
public JsonElement Metadata { get; set; } = JsonDefaults.Object();
|
||||
}
|
||||
|
||||
public enum ContentAssetType
|
||||
{
|
||||
Pdf,
|
||||
|
||||
Reference in New Issue
Block a user