From d000b57ff1d73d4de97a8f72db1b543e6f4c1b8c Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 7 Jun 2024 07:12:48 +0200 Subject: [PATCH] fix: use small integer like in db --- upub/core/src/model/job.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upub/core/src/model/job.rs b/upub/core/src/model/job.rs index b46eecc2..970af8d2 100644 --- a/upub/core/src/model/job.rs +++ b/upub/core/src/model/job.rs @@ -1,7 +1,7 @@ use sea_orm::entity::prelude::*; #[derive(Debug, Clone, Copy, PartialEq, Eq, EnumIter, DeriveActiveEnum)] -#[sea_orm(rs_type = "i32", db_type = "Integer")] +#[sea_orm(rs_type = "i16", db_type = "SmallInteger")] pub enum JobType { Inbound = 1, Outbound = 2,