Not sure what you want, but maybe this can help
--create a table
t={}
--add attributes
t.myAttribute="foo"
t.x=10
--create table with default attributes
t2={a=100,b="bar"}