Postgresql has referential integrety checking.
[htsworkflow.git] / htsworkflow / frontend / samples / fixtures / test_samples.json
index f368b71ff86b7c8b8d78829dbfe81f6e7938e0a8..41824e065a149215bfaf5d656cc2f23ae9576f94 100644 (file)
                  "email": "bob@some.where.else"
                }
     },
+    {"pk": 3, "model": "samples.affiliation",
+     "fields": {
+         "users": [],
+         "contact": "group 3",
+         "name": "affiliation 3",
+         "email": "pk3@example.com"
+         }
+     },
+    {"pk": 4, "model": "samples.affiliation",
+     "fields": {
+         "users": [],
+         "contact": "group 4",
+         "name": "affiliation 4",
+         "email": "pk1@example.com"
+         }
+     },
+    {"pk": 5, "model": "samples.affiliation",
+     "fields": {
+         "users": [],
+         "contact": "group 5",
+         "name": "affiliation 5",
+         "email": "pk5@example.com"
+         }
+     },
  {"pk": 153, "model": "experiments.flowcell",
   "fields": {
       "paired_end": true,
             "library_type": 2,
             "made_by": "Lorian",
             "affiliations": [
-                41
+                3
             ],
             "replicate": 1,
             "condition": 1,
             "library_type": 2,
             "made_by": "Brian Williams",
             "affiliations": [
-                4,
-                8,
-                12
+                1,
+                2,
+                4
             ],
             "replicate": 1,
             "condition": 1,
             "library_type": 2,
             "made_by": "Lorian",
             "affiliations": [
-                41
+                4
             ],
             "replicate": 1,
             "condition": 1,
             "library_type": 2,
             "made_by": "Lorian",
             "affiliations": [
-                41
+                4
             ],
             "replicate": 1,
             "condition": 1,