You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -274,10 +274,10 @@ Models are used to define the structure of data in the application. They are use
274
274
275
275
We store models in the `src/lightly_studio/models` directory. The models are organized into different files based on their functionality. For example, we have a `sample.py` file to define the models for samples such as:
276
276
-`SampleBase` - the base model describing common fields for all sample-related models.
277
-
-`SampleTable` - the main model for samples defining table structure and relationships.
278
-
-`SampleCreate` - a model used when creating a new sample, which may contain only a subset of fields.
277
+
-`ImageTable` - the main model for samples defining table structure and relationships.
278
+
-`ImageCreate` - a model used when creating a new sample, which may contain only a subset of fields.
279
279
-`SampleUpdate` - a model used for updating existing samples, which may contain only the fields that can be updated.
280
-
-`SampleView` - a model used for viewing samples, which may contain additional fields like timestamps or relationships.
280
+
-`ImageView` - a model used for viewing samples, which may contain additional fields like timestamps or relationships.
281
281
-`SampleLink` - a model used for linking samples, which may contain fields like `sample_id`, `linked_sample_id`, and `relationship_type`. Typically only needed for many-to-many relationships.
282
282
283
283
Usually only "Base", "Table", "Create", "Update", and "View" models are needed for each entity.
@@ -321,13 +321,13 @@ class Sample(SampleBase, table=True):
0 commit comments