I created two tables using This -> https://stackoverflow.com/a/30204854/16681212 method. Now I need another table that is doing the same thing but based on both id's. So each STUFF should be able to have multiple items starting with another sequence per Stuff (makes sense? :D)
thing_id | stuff_id | item_id |
---|---|---|
1 | 1 | 1 |
1 | 1 | 2 |
2 | 1 | 1 |
2 | 2 | 1 |
2 | 2 | 2 |
2 | 2 | 3 |
2 | 3 | 1 |
3 | 1 | 1 |
3 | 2 | 1 |
3 | 2 | 2 |
and so on, which makes every combination unique.
I don't know how and if this is possible with the tables I already created and the method above, as I'm just starting out on PostgreSQL. Any help appreciated!