function contact_install() db_sqlapi_install('contact') end function contact_schema() return { ['contact'] = { ['fields'] = { ['cid'] = {['type'] = 'serial', ['unsigned'] = true, ['not null'] = true}, ['category'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['recipients'] = {['type'] = 'text', ['not null'] = true, ['size'] = 'medium'}, ['reply'] = {['type'] = 'text', ['not null'] = true, ['size'] = 'big'}, ['weight'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}, ['selected'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}}, ['unique keys'] = { ['category'] = {'category'}}, ['primary key'] = {'cid'}}} end