function aggregator_install() db_sqlapi_install('aggregator') end function aggregator_schema() return { ['aggregator_category'] = { ['fields'] = { ['cid'] = {['type'] = 'serial', ['not null'] = true}, ['title'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['description'] = {['type'] = 'text', ['not null'] = true, ['size'] = 'big'}, ['block'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}}, ['primary key'] = {'cid'}, ['unique keys'] = { ['title'] = {'title'}}}, ['aggregator_category_feed'] = { ['fields'] = { ['fid'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0}, ['cid'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0}}, ['primary key'] = {'fid', 'cid'}}, ['aggregator_category_item'] = { ['fields'] = { ['iid'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0}, ['cid'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0}}, ['primary key'] = {'iid', 'cid'}}, ['aggregator_feed'] = { ['fields'] = { ['fid'] = {['type'] = 'serial', ['not null'] = true}, ['title'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['url'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['refresh'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0}, ['checked'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0}, ['link'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['description'] = {['type'] = 'text', ['not null'] = true, ['size'] = 'big'}, ['image'] = {['type'] = 'text', ['not null'] = true, ['size'] = 'medium'}, ['etag'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['modified'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0}, ['block'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0, ['size'] = 'tiny'}}, ['unique keys'] = { ['url'] = {'url'}, ['title'] = {'title'}}, ['primary key'] = {'fid'}}, ['aggregator_item'] = { ['fields'] = { ['iid'] = {['type'] = 'serial', ['not null'] = true}, ['fid'] = {['type'] = 'int', ['not null'] = true, ['default'] = 0}, ['title'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['link'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['author'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = true, ['default'] = ''}, ['description'] = {['type'] = 'text', ['not null'] = true, ['size'] = 'big'}, ['timestamp'] = {['type'] = 'int', ['not null'] = ''}, ['guid'] = {['type'] = 'varchar', ['length'] = 255, ['not null'] = ''}}, ['indexes'] = { ['fid'] = {'fid'}}, ['primary key'] = {'iid'}}} end