Rule generator for partitions. Incomplete.
Complete trigger definition.
Add table definitions.