diff --git a/src/entity/column.rs b/src/entity/column.rs index cc93bde4..865eccae 100644 --- a/src/entity/column.rs +++ b/src/entity/column.rs @@ -62,6 +62,7 @@ pub enum ColumnType { Custom(String), /// A Universally Unique IDentifier that is specified in RFC 4122 Uuid, + /// `ENUM` data type with name and variants Enum(String, Vec), } @@ -315,6 +316,7 @@ impl ColumnDef { self } + /// Get [ColumnType] as reference pub fn get_column_type(&self) -> &ColumnType { &self.col_type }