model spec of invoice,permission,product_event