|
Lightweight 0.20260617.0
|
Represents a SQL column declaration. More...
#include <MigrationPlan.hpp>
Public Attributes | |
| std::string | name |
| The name of the column. | |
| SqlColumnTypeDefinition | type |
| The type of the column. | |
| SqlPrimaryKeyType | primaryKey { SqlPrimaryKeyType::NONE } |
| The primary key type of the column. | |
| std::optional< SqlForeignKeyReferenceDefinition > | foreignKey {} |
| The foreign key reference definition of the column. | |
| bool | required { false } |
| Indicates if the column is required (non-nullable). | |
| bool | unique { false } |
| Indicates if the column is unique. | |
| std::string | defaultValue {} |
| The default value of the column. | |
| bool | index { false } |
| Indicates if the column is indexed. | |
| uint16_t | primaryKeyIndex { 0 } |
| The 1-based index in the primary key (0 if not part of a specific order). | |
Represents a SQL column declaration.
Definition at line 221 of file MigrationPlan.hpp.
| std::string Lightweight::SqlColumnDeclaration::name |
The name of the column.
Definition at line 224 of file MigrationPlan.hpp.
| SqlColumnTypeDefinition Lightweight::SqlColumnDeclaration::type |
The type of the column.
Definition at line 227 of file MigrationPlan.hpp.
| SqlPrimaryKeyType Lightweight::SqlColumnDeclaration::primaryKey { SqlPrimaryKeyType::NONE } |
The primary key type of the column.
Definition at line 230 of file MigrationPlan.hpp.
| std::optional<SqlForeignKeyReferenceDefinition> Lightweight::SqlColumnDeclaration::foreignKey {} |
The foreign key reference definition of the column.
Definition at line 233 of file MigrationPlan.hpp.
| bool Lightweight::SqlColumnDeclaration::required { false } |
Indicates if the column is required (non-nullable).
Definition at line 236 of file MigrationPlan.hpp.
| bool Lightweight::SqlColumnDeclaration::unique { false } |
Indicates if the column is unique.
Definition at line 239 of file MigrationPlan.hpp.
| std::string Lightweight::SqlColumnDeclaration::defaultValue {} |
The default value of the column.
Definition at line 242 of file MigrationPlan.hpp.
| bool Lightweight::SqlColumnDeclaration::index { false } |
Indicates if the column is indexed.
Definition at line 245 of file MigrationPlan.hpp.
| uint16_t Lightweight::SqlColumnDeclaration::primaryKeyIndex { 0 } |
The 1-based index in the primary key (0 if not part of a specific order).
Definition at line 248 of file MigrationPlan.hpp.