fremail / sequelize-nested-set

Library to store and manage nested set trees using Sequelize
MIT License
39 stars 10 forks source link

parentId #6

Closed ivan-ionin closed 3 years ago

ivan-ionin commented 5 years ago

Maybe worth adding parentId field (like pid or pnt) to interface for simplify usage tree nodes?

fremail commented 5 years ago

Interesting idea, @ivan-ionin! I have no objection!

We could add the field as an optional.

PR is welcome :)

ustun commented 5 years ago

+1 Baum for PHP seems to have that as well. See https://github.com/etrepat/baum