From 2db2eeb876c436f67bbe2ed5ddd33eededa5d019 Mon Sep 17 00:00:00 2001 From: "Mark A. Miller" Date: Fri, 27 Jan 2023 12:38:37 -0500 Subject: [PATCH] #588 Biosample unique keys only see also #589, but that may only have poetry config changes --- src/schema/nmdc.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/schema/nmdc.yaml b/src/schema/nmdc.yaml index 398c521ca4..dd739f30ca 100644 --- a/src/schema/nmdc.yaml +++ b/src/schema/nmdc.yaml @@ -225,6 +225,13 @@ classes: Biosample: + unique_keys: + samp_name_unique_key: + notes: + - "id is already required to be unique because it is the identifier in Biosample's parent class, NamedThing. Remember, notes like this could be exposed to end users. CJM suggested YAML # comment" + unique_key_slots: + - samp_name + is_a: MaterialEntity in_subset: - sample subset