Hi Derek it is not difficult for me to write the model for the product
entity. but there are also other diagrams that I want to convert into
models. so I was just wanted to clear my concept.
I am confused in Super types and sub types as you can see an entity within
the entity. how should I convert them into models?

On Thu, Aug 26, 2021 at 6:50 PM Derek <gamesb...@gmail.com> wrote:

> There is not sufficient data in that image to create models.  You don't
> know the field types, for example.
>
> Once you have those, it should not be too hard e.g.:
>
> from django.db import models
>
> class Product(models.Model):
>     product_id = models.AutoField()
>     name = models.CharField( max_length=255)
>     date_introduction = models.DateField()
>     comment = models.TextField()
>
> #etc.
>
> You'll need to use ForeignKey fields to link related tables, of course.
>
> HTH.
>
> On Thursday, 26 August 2021 at 10:28:23 UTC+2 abubak...@gmail.com wrote:
>
>> can anyone help me?
>>
>> On Thu, Aug 26, 2021 at 9:32 AM DJANGO DEVELOPER <abubak...@gmail.com>
>> wrote:
>>
>>> Currently, I am working on an inventory management system and I have got
>>> some UML diagrams and want to convert those uml diagrams into django
>>> models. So can anyone guide me on how to convert those UML diagrams into
>>> django models?
>>> an example is below of uml diagram
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/d7cc08c3-cb88-422b-8cb3-a15130abeba1n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/d7cc08c3-cb88-422b-8cb3-a15130abeba1n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/74f7d899-ceb8-42a4-8809-fdd5aac48625n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/74f7d899-ceb8-42a4-8809-fdd5aac48625n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKPY9pne-RqvLjtELHR-%2BK4RXPnhsPyAMBzcfbzfUjLZKXwqeQ%40mail.gmail.com.

Reply via email to