1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2024-12-29 11:05:44 +00:00
Lidarr/Migrator.net/Migrator.Framework/ColumnProperty.cs

51 lines
1.2 KiB
C#
Raw Normal View History

using System;
namespace Migrator.Framework
{
/// <summary>
/// Represents a table column properties.
/// </summary>
[Flags]
public enum ColumnProperty
{
None = 0,
/// <summary>
/// Null is allowable
/// </summary>
Null = 1,
/// <summary>
/// Null is not allowable
/// </summary>
NotNull = 2,
/// <summary>
/// Identity column, autoinc
/// </summary>
Identity = 4,
/// <summary>
/// Unique Column
/// </summary>
Unique = 8,
/// <summary>
/// Indexed Column
/// </summary>
Indexed = 16,
/// <summary>
/// Unsigned Column
/// </summary>
Unsigned = 32,
/// <summary>
/// Foreign Key
/// </summary>
ForeignKey = Unsigned | Null,
/// <summary>
/// Primary Key
/// </summary>
PrimaryKey = 64 | Unsigned | NotNull,
/// <summary>
/// Primary key. Make the column a PrimaryKey and unsigned
/// </summary>
PrimaryKeyWithIdentity = PrimaryKey | Identity
}
}