The tables are already linked. A new service needs a row in the registry before a deployment can refer to its ID. You can try the deployment INSERT first to see the foreign-key error.
Register billing with service ID 30. Then log deployment 103 for that service. Keep the existing registrations and check the value 30 in both tables.