summaryrefslogtreecommitdiff
path: root/src/database/column.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/column.hpp')
-rw-r--r--src/database/column.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/database/column.hpp b/src/database/column.hpp
index 9367701..50c9c14 100644
--- a/src/database/column.hpp
+++ b/src/database/column.hpp
@@ -13,6 +13,10 @@ struct Column
T value{};
};
+struct ForeignKey: Column<std::size_t> {
+ static constexpr auto name = "fk_";
+};
+
struct Id: Column<std::size_t> {
static constexpr std::size_t unset_value = static_cast<std::size_t>(-1);
static constexpr auto name = "id_";