Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
♻️ Re-order fields in artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed Aug 23, 2024
1 parent f320333 commit b0f6b6f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions lnschema_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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"
)
Expand Down

0 comments on commit b0f6b6f

Please sign in to comment.