]> Untitled Git - lemmy.git/blobdiff - crates/db_schema/src/newtypes.rs
Add Custom Emojis Support (#2616)
[lemmy.git] / crates / db_schema / src / newtypes.rs
index 7e2465bb70b0eb18fd9ef0d927894fcd4dccb766..da2c9b9e5ccdcdf670d5d24ebf6db70be44a999e 100644 (file)
@@ -108,6 +108,10 @@ pub struct InstanceId(i32);
 #[cfg_attr(feature = "full", derive(DieselNewType))]
 pub struct LocalSiteId(i32);
 
+#[derive(Debug, Copy, Clone, Hash, Eq, PartialEq, Serialize, Deserialize, Default)]
+#[cfg_attr(feature = "full", derive(DieselNewType))]
+pub struct CustomEmojiId(i32);
+
 #[repr(transparent)]
 #[derive(Clone, PartialEq, Eq, Serialize, Deserialize, Debug)]
 #[cfg_attr(feature = "full", derive(AsExpression, FromSqlRow))]