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