You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
synctv/.sqlx/query-d63ad8dbec49abbae3212...

133 lines
4.8 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n INSERT INTO user_preferences (\n user_id,\n two_factor_enabled,\n notify_room_invitation_in_app,\n notify_room_event_in_app,\n notify_system_announcement_in_app,\n notify_room_invitation_email,\n notify_room_event_email,\n notify_system_announcement_email,\n settings\n )\n VALUES (\n $1,\n COALESCE($2, FALSE),\n COALESCE($3, TRUE),\n COALESCE($4, TRUE),\n COALESCE($5, TRUE),\n COALESCE($6, FALSE),\n COALESCE($7, FALSE),\n COALESCE($8, TRUE),\n $9\n )\n ON CONFLICT (user_id) DO UPDATE\n SET two_factor_enabled = COALESCE($2, user_preferences.two_factor_enabled),\n notify_room_invitation_in_app = COALESCE($3, user_preferences.notify_room_invitation_in_app),\n notify_room_event_in_app = COALESCE($4, user_preferences.notify_room_event_in_app),\n notify_system_announcement_in_app = COALESCE($5, user_preferences.notify_system_announcement_in_app),\n notify_room_invitation_email = COALESCE($6, user_preferences.notify_room_invitation_email),\n notify_room_event_email = COALESCE($7, user_preferences.notify_room_event_email),\n notify_system_announcement_email = COALESCE($8, user_preferences.notify_system_announcement_email),\n updated_at = CURRENT_TIMESTAMP\n RETURNING user_id AS \"user_id: UserId\",\n two_factor_enabled,\n notify_room_invitation_in_app,\n notify_room_event_in_app,\n notify_system_announcement_in_app,\n notify_room_invitation_email,\n notify_room_event_email,\n notify_system_announcement_email,\n settings AS \"settings: RoomSettings\"\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "user_id: UserId",
"type_info": "Int8",
"origin": {
"Table": {
"table": "user_preferences",
"name": "user_id"
}
}
},
{
"ordinal": 1,
"name": "two_factor_enabled",
"type_info": "Bool",
"origin": {
"Table": {
"table": "user_preferences",
"name": "two_factor_enabled"
}
}
},
{
"ordinal": 2,
"name": "notify_room_invitation_in_app",
"type_info": "Bool",
"origin": {
"Table": {
"table": "user_preferences",
"name": "notify_room_invitation_in_app"
}
}
},
{
"ordinal": 3,
"name": "notify_room_event_in_app",
"type_info": "Bool",
"origin": {
"Table": {
"table": "user_preferences",
"name": "notify_room_event_in_app"
}
}
},
{
"ordinal": 4,
"name": "notify_system_announcement_in_app",
"type_info": "Bool",
"origin": {
"Table": {
"table": "user_preferences",
"name": "notify_system_announcement_in_app"
}
}
},
{
"ordinal": 5,
"name": "notify_room_invitation_email",
"type_info": "Bool",
"origin": {
"Table": {
"table": "user_preferences",
"name": "notify_room_invitation_email"
}
}
},
{
"ordinal": 6,
"name": "notify_room_event_email",
"type_info": "Bool",
"origin": {
"Table": {
"table": "user_preferences",
"name": "notify_room_event_email"
}
}
},
{
"ordinal": 7,
"name": "notify_system_announcement_email",
"type_info": "Bool",
"origin": {
"Table": {
"table": "user_preferences",
"name": "notify_system_announcement_email"
}
}
},
{
"ordinal": 8,
"name": "settings: RoomSettings",
"type_info": "Jsonb",
"origin": {
"Table": {
"table": "user_preferences",
"name": "settings"
}
}
}
],
"parameters": {
"Left": [
"Int8",
"Bool",
"Bool",
"Bool",
"Bool",
"Bool",
"Bool",
"Bool",
"Jsonb"
]
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
false,
false
]
},
"hash": "d63ad8dbec49abbae3212fcfddbda984c017267e082903d15ae3332170e37d24"
}