To keep track of the channel name, create a table that will have the user id as a primary key and a channel name as a string. Then we get this string when the user wants to create a channel and we update it when the user wants to rename his channel
To keep track of permissions, we create a table that will register every user id allowed linked to the channel owner user id.
So:
-> When the user unlocks his channel, we clear those ids
-> When the user creates a channel, we check if he has ids registered. If he does, we set those ids as permitted, if he doesn't we simply create a blank channel
-> Every time the user permits someone, we record it
Asked by Bendak