mirror of
https://github.com/immense/Remotely.git
synced 2025-10-26 11:27:15 +00:00
51 lines
1.2 KiB
C#
51 lines
1.2 KiB
C#
using Remotely.Shared.Enums;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Text.Json.Serialization;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Remotely.Shared.Models;
|
|
|
|
public class SavedScript
|
|
{
|
|
[Required]
|
|
public string? Content { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public RemotelyUser? Creator { get; set; }
|
|
|
|
public string CreatorId { get; set; } = null!;
|
|
|
|
[StringLength(200)]
|
|
public string? FolderPath { get; set; }
|
|
|
|
public bool GenerateAlertOnError { get; set; }
|
|
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public Guid Id { get; set; }
|
|
|
|
public bool IsPublic { get; set; }
|
|
|
|
public bool IsQuickScript { get; set; }
|
|
|
|
[StringLength(100)]
|
|
[Required]
|
|
public required string Name { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public Organization? Organization { get; set; }
|
|
|
|
public string OrganizationID { get; set; } = null!;
|
|
|
|
public bool SendEmailOnError { get; set; }
|
|
|
|
[EmailAddress]
|
|
public string? SendErrorEmailTo { get; set; }
|
|
|
|
public ScriptingShell Shell { get; set; }
|
|
}
|