Do you know that the table is the variable "console" and not its childs?, but you can't do:
console[1] = something
Because console[1] is not a table, in fact, is not anything, the correct would be:
console = {}
console[1] = {}
console[1].data = "a string"
-- Or
console = {{}} -- a table stored...