using Immense.RemoteControl.Shared.Models; using Remotely.Shared.Enums; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace Remotely.Shared.Models; public class Organization { public ICollection Alerts { get; set; } = new List(); public ICollection ApiTokens { get; set; } = new List(); public BrandingInfo? BrandingInfo { get; set; } public ICollection ScriptResults { get; set; } = new List(); public ICollection ScriptRuns { get; set; } = new List(); public ICollection SavedScripts { get; set; } = new List(); public ICollection ScriptSchedules { get; set; } = new List(); public ICollection DeviceGroups { get; set; } = new List(); public ICollection Devices { get; set; } = new List(); [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public string ID { get; set; } = null!; public ICollection InviteLinks { get; set; } = new List(); public bool IsDefaultOrganization { get; set; } [StringLength(25)] public required string OrganizationName { get; set; } public ICollection RemotelyUsers { get; set; } = new List(); public ICollection SharedFiles { get; set; } = new List(); }