feat(relays // backend >> database): added relay user indices
This commit is contained in:
parent
2b79d920eb
commit
ce4373e048
|
@ -35,6 +35,18 @@ impl Backend {
|
||||||
.execute(&self.pool)
|
.execute(&self.pool)
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
sqlx::query(&format!(
|
||||||
|
"CREATE TABLE RelayIndex_{} (
|
||||||
|
public_id UUID NOT NULL PRIMARY KEY,
|
||||||
|
public_key BLOB(4096) NOT NULL,
|
||||||
|
auth VARCHAR(128) NOT NULL,
|
||||||
|
name VARCHAR(32)
|
||||||
|
);",
|
||||||
|
relay_id.simple()
|
||||||
|
))
|
||||||
|
.execute(&self.pool)
|
||||||
|
.await?;
|
||||||
|
|
||||||
Ok(Ok((relay_id, secret)))
|
Ok(Ok((relay_id, secret)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue