You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: user_unban.rs
    path of file: ./repos/rivet/svc/pkg/team/worker/src/workers
    
    the code of the file until where you have to start completion: use chirp_worker::prelude::*;
use proto::backend::pkg::*;
use serde_json::json;

#[worker(name = "team-user-unban")]
async fn worker(ctx: &OperationContext<team::msg::user_unban::Message>) -> GlobalResult<()> {
	let team_id = unwrap_ref!(ctx.team_id).as_uuid();
	let user_id = unwrap_ref!(ctx.user_id).as_uuid();

	sql_execute!(
		[ctx]
		"
		DELETE FROM db_team.banned_users
		WHERE team_id = $1
		AND user_id = $2
		",
		team_id,
		user_id,
	)
	.await?;

	// TODO: Establish audit logs
	// sql_execute!(
	// 	[ctx]
	// 	"INSERT INTO team_audit_logs WHERE team_id = $1",
	// 	team_id,
	// 	user_id,
	// )
	// 	.await?;

	msg!([ctx] team::msg::user_unban_complete(team_id, user_id) {
		team_id: ctx.team_id,
		user_id: ctx.user_id,
		unbanner_user_id: ctx.unbanner_user_id,
	})
	.await?;

	msg!([ctx] analytics::msg::event_create() {
		events: vec![
			analytics::msg::event_create::Event {
				event_id: Some(Uuid::new_v4().into()),
				name: "team.user.unban".into(),

    
async fn worker(ctx: &OperationContext<team::msg::user_unban::Message>) -> GlobalResult<()> {
	let team_id = unwrap_ref!(ctx.team_id).as_uuid();
	let user_id = unwrap_ref!(ctx.user_id).as_uuid();

	sql_execute!(
		[ctx]
		"
		DELETE FROM db_team.banned_users
		WHERE team_id = $1
		AND user_id = $2
		",
		team_id,
		user_id,
	)
	.await?;

	// TODO: Establish audit logs
	// sql_execute!(
	// 	[ctx]
	// 	"INSERT INTO team_audit_logs WHERE team_id = $1",
	// 	team_id,
	// 	user_id,
	// )
	// 	.await?;

	msg!([ctx] team::msg::user_unban_complete(team_id, user_id) {
		team_id: ctx.team_id,
		user_id: ctx.user_id,
		unbanner_user_id: ctx.unbanner_user_id,
	})
	.await?;

	msg!([ctx] analytics::msg::event_create() {
		events: vec![
			analytics::msg::event_create::Event {
				event_id: Some(Uuid::new_v4().into()),
				name: "team.user.unban".into(),
				user_id: ctx.unbanner_user_id,
				properties_json: Some(serde_json::to_string(&json!({
					"team_id": team_id,
					"unban_user_id": user_id,
				}))?),
				..Default::default()
			}
		],
	})
	.await?;

	Ok(())
}