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

multi table #7743

Closed
dakexuan opened this issue Nov 23, 2022 · 4 comments
Closed

multi table #7743

dakexuan opened this issue Nov 23, 2022 · 4 comments
Labels
More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. O-Community T-Enhancement Waiting-For-Reporter Waiting for more information from the reporter before we can proceed

Comments

@dakexuan
Copy link

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

@rorbech
Copy link
Collaborator

rorbech commented Nov 28, 2022

Hi @dakexuan. It is not clear what you mean by "double table". Could you elaborate a bit?

@sync-by-unito sync-by-unito bot added the Waiting-For-Reporter Waiting for more information from the reporter before we can proceed label Nov 28, 2022
@dakexuan
Copy link
Author

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

@github-actions github-actions bot added Needs-Attention and removed Waiting-For-Reporter Waiting for more information from the reporter before we can proceed labels Dec 20, 2022
@clementetb
Copy link
Collaborator

clementetb commented Dec 21, 2022

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.

@sync-by-unito sync-by-unito bot added Waiting-For-Reporter Waiting for more information from the reporter before we can proceed and removed Needs-Attention labels Dec 21, 2022
@sync-by-unito sync-by-unito bot added the More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. label Jan 6, 2023
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
More-information-needed More information needed from the reporter. The issue will autoclose if no more information is given. O-Community T-Enhancement Waiting-For-Reporter Waiting for more information from the reporter before we can proceed
Projects
None yet
Development

No branches or pull requests

3 participants