mirror of
https://github.com/DrizzleTime/Foxel.git
synced 2026-05-13 06:19:49 +08:00
17 lines
497 B
C#
17 lines
497 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Foxel.Services.Attributes;
|
|
|
|
namespace Foxel.Models.DataBase;
|
|
|
|
public class StorageMode : BaseModel
|
|
{
|
|
[Required]
|
|
[StringLength(100)]
|
|
public string Name { get; set; } = string.Empty;
|
|
public bool IsEnabled { get; set; } = true;
|
|
|
|
public StorageType StorageType { get; set; } = StorageType.Local;
|
|
[Column(TypeName = "jsonb")] public string? ConfigurationJson { get; set; }
|
|
}
|