event table creation