How to store numbers of references as an array in a postgres SQL

How to store numbers of references id in a column as an array

E.g. => If there is a db of music and there is 2 table song and singer. Song will have one singer and can take singer id and store it reference easily but how to store number of songs inside a singer table that how many song he has sang.

https://www.postgresqltutorial.com/postgresql-array/

go through this link…

and while using sequelize orm you can straight away take that array and pass to findMany() function and query your songs table to get all the songs of a perticuler artist…

No need to insert into singers table you can assign singer I’d to his songs and store it in songs table it’ll be the better approach I think