You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
834 B
36 lines
834 B
1 year ago
|
using System.Text.Json.Nodes;
|
||
|
using LiteDB;
|
||
|
|
||
|
namespace StabilityMatrix.Core.Models.Database;
|
||
|
|
||
|
public record InferenceProjectEntry
|
||
|
{
|
||
|
[BsonId]
|
||
|
public required Guid Id { get; init; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Full path to the project file (.smproj)
|
||
|
/// </summary>
|
||
|
public required string FilePath { get; init; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Whether the project is open in the editor
|
||
|
/// </summary>
|
||
|
public bool IsOpen { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Whether the project is selected in the editor
|
||
|
/// </summary>
|
||
|
public bool IsSelected { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// Current index of the tab
|
||
|
/// </summary>
|
||
|
public int CurrentTabIndex { get; set; } = -1;
|
||
|
|
||
|
/// <summary>
|
||
|
/// The current dock layout state
|
||
|
/// </summary>
|
||
|
public JsonObject? DockLayout { get; set; }
|
||
|
}
|