feat: more fixes; finish account api types for now; add some more useful fields to it

This commit is contained in:
nullishamy 2025-04-28 19:23:56 +01:00
parent 76fb8838c2
commit 62931ee20b
Signed by: amy
SSH key fingerprint: SHA256:WmV0uk6WgAQvDJlM8Ld4mFPHZo02CLXXP5VkwQ5xtyk
10 changed files with 168 additions and 65 deletions

View file

@ -47,17 +47,26 @@ async fn main() {
)
.execute(&mut *conn)
.await
.unwrap();
.unwrap();
let ts = main::ap::new_ts();
sqlx::query!(
r#"
INSERT INTO user (id, username, actor_id, display_name)
VALUES (?1, ?2, ?3, ?4)
INSERT INTO user (
id, acct, url, remote, username,
actor_id, display_name, created_at
)
VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8)
"#,
"9b9d497b-2731-435f-a929-e609ca69dac9",
"amy",
"https://ferri.amy.mov/@amy",
false,
"amy",
"https://ferri.amy.mov/users/9b9d497b-2731-435f-a929-e609ca69dac9",
"amy"
"amy",
ts
)
.execute(&mut *conn)
.await