From c853349dbb5b32002f9ddb3e1dc379b12139e22c Mon Sep 17 00:00:00 2001 From: Jens Reimann Date: Wed, 17 Apr 2024 11:11:51 +0200 Subject: [PATCH] fix: properly define primary key --- entity/src/package_relates_to_package.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/entity/src/package_relates_to_package.rs b/entity/src/package_relates_to_package.rs index 795057085..1049cc2d5 100644 --- a/entity/src/package_relates_to_package.rs +++ b/entity/src/package_relates_to_package.rs @@ -6,8 +6,11 @@ use sea_orm::entity::prelude::*; pub struct Model { #[sea_orm(primary_key)] pub left_package_id: i32, + #[sea_orm(primary_key)] pub relationship: Relationship, + #[sea_orm(primary_key)] pub right_package_id: i32, + #[sea_orm(primary_key)] pub sbom_id: i32, }