X-Git-Url: http://these/git/?a=blobdiff_plain;f=crates%2Fdb_schema%2Fsrc%2Fnewtypes.rs;h=147688370ec48b6b8a6757e98a4daaa8b3fea3b0;hb=235cc8b22897bfb3e71ba3dbd725d36863fea8ba;hp=d0287e1558643cfebf5eebae860d3d94d4a1ae9c;hpb=276a8c2bd3e4fd1323e66b808675cf14cf6f75c5;p=lemmy.git diff --git a/crates/db_schema/src/newtypes.rs b/crates/db_schema/src/newtypes.rs index d0287e15..14768837 100644 --- a/crates/db_schema/src/newtypes.rs +++ b/crates/db_schema/src/newtypes.rs @@ -97,6 +97,14 @@ pub struct CommunityLanguageId(pub i32); #[cfg_attr(feature = "full", derive(DieselNewType))] pub struct CommentReplyId(i32); +#[derive(Debug, Copy, Clone, Hash, Eq, PartialEq, Serialize, Deserialize, Default)] +#[cfg_attr(feature = "full", derive(DieselNewType))] +pub struct InstanceId(i32); + +#[derive(Debug, Copy, Clone, Hash, Eq, PartialEq, Serialize, Deserialize, Default)] +#[cfg_attr(feature = "full", derive(DieselNewType))] +pub struct LocalSiteId(i32); + #[repr(transparent)] #[derive(Clone, PartialEq, Eq, Serialize, Deserialize, Debug)] #[cfg_attr(feature = "full", derive(AsExpression, FromSqlRow))]