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
multi table #7743
Comments
Hi @dakexuan. It is not clear what you mean by "double table". Could you elaborate a bit? |
I have a model MessageEntity for storing group and individual chat messages,The message structure is the same,I'd like to store them separately,How can I do that?Like SQLit,a table can be created using different table names |
Hi @dakexuan you will need to create a second model with a copy of the data from the first. If the use case is that a group or an individual owns a message, you might use object relationships to define it. It would allow reusing the same model whether an individual or a group binds it. Realm even allows you to define backward relationships based on a relationship to be able to navigate the objects in any direction. |
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further. |
Problem
how can i create double table base on one model?
Solution
No response
Alternatives
No response
How important is this improvement for you?
No response
The text was updated successfully, but these errors were encountered: