Skip to content

Commit

Permalink
✨ Add chembl ID to Compound
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <[email protected]>
  • Loading branch information
Zethson committed Sep 20, 2024
1 parent 2f963d6 commit 5b5ec81
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
19 changes: 19 additions & 0 deletions wetlab/migrations/0024_compound_chembl_id.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 5.0.3 on 2024-09-20 11:08

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("wetlab", "0023_compoundtreatment_duration_and_more"),
]

operations = [
migrations.AddField(
model_name="compound",
name="chembl_id",
field=models.CharField(
db_index=True, default=None, max_length=32, null=True
),
),
]
4 changes: 4 additions & 0 deletions wetlab/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ class Meta(BioRecord.Meta, TracksRun.Meta, TracksUpdates.Meta):
max_length=32, db_index=True, null=True, default=None
)
"""Ontology ID of the compound."""
chembl_id: str | None = models.CharField(
max_length=32, db_index=True, null=True, default=None
)
"""Chembl ontology ID of the compound"""
abbr: str | None = models.CharField(
max_length=32, db_index=True, unique=True, null=True, default=None
)
Expand Down

0 comments on commit 5b5ec81

Please sign in to comment.