Skip to content
Snippets Groups Projects
Commit 629122ba authored by Muhammad Arsalan's avatar Muhammad Arsalan
Browse files

Merge branch 'ontology_property' into 'master'

[carlosm] new table ontology_properties created

Closes #11

See merge request !3
parents 2a1c2163 2eec17de
No related branches found
No related tags found
1 merge request!3[carlosm] new table ontology_properties created
# Generated by Django 4.1 on 2023-02-20 16:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("chebi_models", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="OntologyProperties",
fields=[
("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("curie", models.CharField(max_length=60, unique=True)),
("property_type", models.CharField(default="owl:Class", max_length=40)),
("characteristic", models.CharField(max_length=30, null=True)),
("label", models.CharField(max_length=60, null=True)),
("sub_property", models.CharField(max_length=60, null=True)),
("inverse_of", models.CharField(max_length=40, null=True)),
("comment", models.TextField(null=True)),
("xref", models.CharField(max_length=60, null=True)),
("namespace", models.CharField(max_length=40, null=True)),
("object_property", models.CharField(max_length=60, null=True)),
("is_cyclic", models.BooleanField(null=True)),
("is_transitive", models.BooleanField(null=True)),
("created_on", models.DateTimeField(auto_now_add=True, null=True)),
("created_by", models.CharField(max_length=256, null=True)),
("modified_on", models.DateTimeField(auto_now=True, null=True)),
("modified_by", models.CharField(max_length=256, null=True)),
("deleted_on", models.DateTimeField(auto_now=True, null=True)),
("deleted_by", models.CharField(max_length=256, null=True)),
],
options={
"db_table": "ontology_properties",
},
),
]
......@@ -218,3 +218,20 @@ class Wurcs(BaseModel):
class Meta:
db_table = "wurcs"
class OntologyProperties(BaseModel):
curie = models.CharField(max_length=60, unique=True)
property_type = models.CharField(max_length=40, default='owl:Class')
characteristic = models.CharField(max_length=30, null=True)
label = models.CharField(max_length=60, null=True)
sub_property = models.CharField(max_length=60, null=True)
inverse_of = models.CharField(max_length=40, null=True)
comment = models.TextField(null=True)
xref = models.CharField(max_length=60, null=True)
namespace = models.CharField(max_length=40, null=True)
object_property = models.CharField(max_length=60, null=True)
is_cyclic = models.BooleanField(null=True)
is_transitive = models.BooleanField(null=True)
class Meta:
db_table = 'ontology_properties'
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment