mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Finalized client-side storage
This commit is contained in:
1 parent
0c47b9a2fb
commit
4781524139
29 files changed
+961
-434
No files matched your search
@@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Artemis.Storage.Entities
|
||||
{
|
||||
[Table("Folders")]
|
||||
internal class FolderEntity
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
public int Order { get; set; }
|
||||
public string Name { get; set; }
|
||||
|
||||
public virtual ICollection<FolderEntity> Folders { get; set; }
|
||||
public virtual ICollection<LayerEntity> Layers { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Artemis.Storage.Entities
|
||||
{
|
||||
[Table("Keypoints")]
|
||||
internal class KeypointEntity
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
public int Time { get; set; }
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Artemis.Storage.Entities
|
||||
{
|
||||
internal class Layer
|
||||
{
|
||||
public int ProfileId { get; set; }
|
||||
public string Name { get; set; }
|
||||
public LayerType LayerType { get; set; }
|
||||
|
||||
public virtual Profile Profile { get; set; }
|
||||
public virtual ICollection<Layer> Layers { get; set; }
|
||||
}
|
||||
|
||||
internal enum LayerType
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Artemis.Storage.Entities
|
||||
{
|
||||
[Table("Layers")]
|
||||
internal class LayerEntity
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Type { get; set; }
|
||||
|
||||
public virtual ICollection<LedEntity> Leds { get; set; }
|
||||
public virtual ICollection<LayerSettingEntity> Settings { get; set; }
|
||||
|
||||
public int Order { get; set; }
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Artemis.Storage.Entities
|
||||
{
|
||||
[Table("LayerSettings")]
|
||||
internal class LayerSettingEntity
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Value { get; set; }
|
||||
|
||||
public ICollection<KeypointEntity> Keypoints { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Artemis.Storage.Entities
|
||||
{
|
||||
[Table("Leds")]
|
||||
internal class LedEntity
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string LedName { get; set; }
|
||||
public string LimitedToDevice { get; set; }
|
||||
|
||||
public int LayerId { get; set; }
|
||||
public virtual LayerEntity Layer { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Artemis.Storage.Entities
|
||||
{
|
||||
internal class Profile
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public virtual ICollection<Layer> Layers { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Artemis.Storage.Entities
|
||||
{
|
||||
internal class ProfileEntity
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public string Module { get; set; }
|
||||
|
||||
public int RootFolderId { get; set; }
|
||||
public virtual FolderEntity RootFolder { get; set; }
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Artemis.Storage.Entities
|
||||
{
|
||||
internal class Setting
|
||||
internal class SettingEntity
|
||||
{
|
||||
[Key]
|
||||
public string Name { get; set; }
|
||||
Reference in new issue
Block a user