added created_at field to event

auto set created_at field to event