From b0f6b6fbf33f6c4a075de862ec3a00f9918f8549 Mon Sep 17 00:00:00 2001 From: Alex Wolf Date: Fri, 23 Aug 2024 18:34:00 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Re-order=20fields=20in=20a?= =?UTF-8?q?rtifact?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lnschema_core/models.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lnschema_core/models.py b/lnschema_core/models.py index 60a40aa0..733834a5 100644 --- a/lnschema_core/models.py +++ b/lnschema_core/models.py @@ -1939,13 +1939,6 @@ class Meta(Record.Meta, IsVersioned.Meta, TracksRun.Meta, TracksUpdates.Meta): null=True, ) """:class:`~lamindb.core.types.ArtifactType` (default `None`).""" - _accessor: str = CharField( - max_length=64, - db_index=True, - null=True, - default=None, - ) - """Default backed or memory accessor, e.g., DataFrame, AnnData.""" size: int = models.BigIntegerField(null=True, db_index=True) """Size in bytes. @@ -1958,13 +1951,6 @@ class Meta(Record.Meta, IsVersioned.Meta, TracksRun.Meta, TracksUpdates.Meta): Useful to ascertain integrity and avoid duplication. """ - _hash_type: str = CharField( - max_length=30, - db_index=True, - null=True, - default=None, - ) - """Type of hash.""" n_objects: int = models.BigIntegerField(default=None, null=True, db_index=True) """Number of objects. @@ -1975,6 +1961,20 @@ class Meta(Record.Meta, IsVersioned.Meta, TracksRun.Meta, TracksUpdates.Meta): Typically, this denotes the first array dimension. """ + _hash_type: str = CharField( + max_length=30, + db_index=True, + null=True, + default=None, + ) + """Type of hash.""" + _accessor: str = CharField( + max_length=64, + db_index=True, + null=True, + default=None, + ) + """Default backed or memory accessor, e.g., DataFrame, AnnData.""" ulabels: ULabel = models.ManyToManyField( ULabel, through="ArtifactULabel", related_name="artifacts" )