-create table ttrss_filters (id integer not null primary key auto_increment,
- owner_uid integer not null,
- feed_id integer default null,
- filter_type integer not null,
- reg_exp varchar(250) not null,
- filter_param varchar(250) not null default '',
- inverse bool not null default false,
- enabled bool not null default true,
- cat_filter bool not null default false,
- cat_id integer default null,
- action_id integer not null default 1,
- action_param varchar(250) not null default '',
- index (filter_type),
- foreign key (filter_type) references ttrss_filter_types(id) ON DELETE CASCADE,
- index (owner_uid),
- foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
- index (feed_id),
- foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE,
- index (cat_id),
- foreign key (cat_id) references ttrss_feed_categories(id) ON DELETE CASCADE,
- index (action_id),
- foreign key (action_id) references ttrss_filter_actions(id) ON DELETE CASCADE) ENGINE=InnoDB DEFAULT CHARSET=UTF8;
-