···6677/// The state of a NAR.
88#[derive(EnumIter, DeriveActiveEnum, Debug, Clone, PartialEq, Eq)]
99-#[sea_orm(rs_type = "String", db_type = "String(Some(1))")]
99+#[sea_orm(rs_type = "String", db_type = "String(StringLen::N(1))")]
1010pub enum NarState {
1111 /// The NAR can be used.
1212 ///
···9090 pub nar_size: i64,
91919292 /// The type of compression in use.
9393- #[sea_orm(column_type = "String(Some(10))")]
9393+ #[sea_orm(column_type = "String(StringLen::N(10))")]
9494 pub compression: String,
95959696 /// Number of chunks that make up this NAR.
+1-1
server/src/database/entity/object.rs
···3737 pub nar_id: i64,
38383939 /// The hash portion of the store path.
4040- #[sea_orm(column_type = "String(Some(32))", indexed)]
4040+ #[sea_orm(column_type = "String(StringLen::N(32))", indexed)]
4141 pub store_path_hash: String,
42424343 /// The full store path being cached, including the store directory.