|
Lightweight 0.20251201.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. | |
| bool | index { false } |
| Indicates if the column is indexed. | |
Represents a SQL column declaration.
Definition at line 198 of file MigrationPlan.hpp.
| std::string Lightweight::SqlColumnDeclaration::name |
The name of the column.
Definition at line 201 of file MigrationPlan.hpp.
| SqlColumnTypeDefinition Lightweight::SqlColumnDeclaration::type |
The type of the column.
Definition at line 204 of file MigrationPlan.hpp.
| SqlPrimaryKeyType Lightweight::SqlColumnDeclaration::primaryKey { SqlPrimaryKeyType::NONE } |
The primary key type of the column.
Definition at line 207 of file MigrationPlan.hpp.
| std::optional<SqlForeignKeyReferenceDefinition> Lightweight::SqlColumnDeclaration::foreignKey {} |
The foreign key reference definition of the column.
Definition at line 210 of file MigrationPlan.hpp.
| bool Lightweight::SqlColumnDeclaration::required { false } |
Indicates if the column is required (non-nullable).
Definition at line 213 of file MigrationPlan.hpp.
| bool Lightweight::SqlColumnDeclaration::unique { false } |
Indicates if the column is unique.
Definition at line 216 of file MigrationPlan.hpp.
| bool Lightweight::SqlColumnDeclaration::index { false } |
Indicates if the column is indexed.
Definition at line 219 of file MigrationPlan.hpp.