Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to support Model Inheritance? #155

Open
SepehrBazyar opened this issue Apr 1, 2022 · 2 comments
Open

How to support Model Inheritance? #155

SepehrBazyar opened this issue Apr 1, 2022 · 2 comments

Comments

@SepehrBazyar
Copy link

Hi
According to the defining structure of columns in attribute fields, how would supporting the inheritance be?
Because by redefining attribute fields, parent's attribute fields will override and we will loose all our former data.
We could define a field under a name and determine what class it would inherit from! But for supporting the models we need to actually do the inheritance; so it would duplicate our tasks.

@aminalaee
Copy link
Member

Just to be clear, you don't mean abstract classes, right? Both classes would be tables on the database, right?

@SepehrBazyar
Copy link
Author

Just to be clear, you don't mean abstract classes, right? Both classes would be tables on the database, right?

the thing I figure out according to this structure is that no inheritance model can be supported; abstract can't get supported and Mixin structure too. About the profile model, I am not sure! There was no description in the document and I am not so certain how it should be!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants