I’m designing a database with ERD for a Telegram Bot and I want to store the Users. Every user gets an id (primary key, int) and the chat id form Telegram (int).
The Telegram Bot API says this about the chat id: "Unique identifier for the target chat or username of the target channel" https://core.telegram.org/bots/api
Now is my question: is the chat id a second primary key or a foreign key or just NOT NULL and UNIQUE? (Or something I never heard before)