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

资源关联API设计 #4

Open
Guo-Zhang opened this issue Jul 1, 2023 · 3 comments
Open

资源关联API设计 #4

Guo-Zhang opened this issue Jul 1, 2023 · 3 comments

Comments

@Guo-Zhang
Copy link
Member

project-relations/<id>

分情况讨论:

  1. 树。简单的child-parent关系,甚至可以不单独建表。
  2. 有向无环图。child-parent的关系稍微复杂,需要单独建表。
  3. 无向图。
@Guo-Zhang
Copy link
Member Author

在DAG的库(或者其他一般图)的设计中,通常通过Node和Edge两类。relation表就是Edge。

@Guo-Zhang
Copy link
Member Author

https://django-postgresql-dag.readthedocs.io/en/latest/quickstart.html

提供了child和parent的API。

@Guo-Zhang
Copy link
Member Author

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

1 participant