tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
UserModelBase.cs
Go to the documentation of this file.
1using System;
2using System.ComponentModel.DataAnnotations;
3
5{
9 public abstract class UserModelBase : UserName
10 {
14 [Required]
15 public bool? Enabled { get; set; }
16
20 [Required]
21 [RequestOptions(FieldPresence.Ignored)]
22 public DateTimeOffset? CreatedAt { get; set; }
23
27 [ResponseOptions]
28 [StringLength(Limits.MaximumIndexableStringLength, MinimumLength = 1)]
29 public string? SystemIdentifier { get; set; }
30 }
31}
bool? Enabled
If the UserModelBase is enabled since users cannot be deleted. System users cannot be disabled.
string? SystemIdentifier
The SID/UID of the UserModelBase on Windows/POSIX respectively.
DateTimeOffset? CreatedAt
When the UserModelBase was created.
Sanity limits to prevent users from overloading.
Definition Limits.cs:9
const int MaximumIndexableStringLength
Length limit for NamedEntity.Names.
Definition Limits.cs:23
Base class for user names.
Definition UserName.cs:7
FieldPresence
Indicates whether a request field is Required or Ignored.
@ Required
DMAPI validation must suceed for the deployment to succeed.