Add xml comments and DateTime datatype support for SQL
This commit is contained in:
parent
27ac4c6318
commit
6a6133f3f7
3 changed files with 233 additions and 16 deletions
|
|
@ -28,11 +28,30 @@ namespace TShockAPI.DB
|
|||
|
||||
|
||||
//Optional
|
||||
/// <summary>
|
||||
/// Sets/Gets if it's unique
|
||||
/// </summary>
|
||||
public bool Unique { get; set; }
|
||||
/// <summary>
|
||||
/// Sets/Gets if it's primary key
|
||||
/// </summary>
|
||||
public bool Primary { get; set; }
|
||||
/// <summary>
|
||||
/// Sets/Gets if it autoincrements
|
||||
/// </summary>
|
||||
public bool AutoIncrement { get; set; }
|
||||
/// <summary>
|
||||
/// Sets/Gets if it can be or not null
|
||||
/// </summary>
|
||||
public bool NotNull { get; set; }
|
||||
/// <summary>
|
||||
/// Sets the default value
|
||||
/// </summary>
|
||||
public string DefaultValue { get; set; }
|
||||
/// <summary>
|
||||
/// Use on DateTime only, if true, sets the default value to the current date when creating the row.
|
||||
/// </summary>
|
||||
public bool DefaultCurrentTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Length of the data type, null = default
|
||||
|
|
@ -51,4 +70,4 @@ namespace TShockAPI.DB
|
|||
Length = length;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue