r/ProgrammingPrompts • • Mar 06 '23

Boxes / Containers database

I had an idea of database where you can store data about boxes in tree format. The structure of box object looks like this:

Box structure:

Attribute nameValue TypeDescription
idnumber (unique, counted globally)This number will be used for operations on that container.
attributiveskey-valueIn this object attributes like name, size, location will be stored. Attributes will be used for searching and filtering.
boxesarray of boxes objectsThis allows the boxes to form a tree structure.

Actions on that data will be preformed in javascript. The actions needed are add, delete, edit, filter and search. The data would be saved in JSON. Easy integration to other applications is needed.

2 Upvotes

2 comments sorted by

1

u/[deleted] Jul 06 '23

Are you talking about a Trie ?

1

u/BurnyAsn Oct 24 '23

It is indeed a tree, no more than that :)