team archive more

This commit is contained in:
Robin Appelman 2025-04-16 09:41:31 +02:00
commit b5b7bc953a
8 changed files with 215 additions and 3 deletions

View file

@ -0,0 +1,18 @@
{
"db_name": "PostgreSQL",
"query": "select team_id as max from membership_history order by team_id desc limit 1;",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "max",
"type_info": "Int4"
}
],
"parameters": {
"Left": []
},
"nullable": [false]
},
"hash": "001370da21cb3c209d1fe7779f95cab7f122d51d39347f68bba252daeab7189a"
}

View file

@ -0,0 +1,18 @@
{
"db_name": "PostgreSQL",
"query": "select id from teams where id > $1 order by id asc",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int4"
}
],
"parameters": {
"Left": ["Int4"]
},
"nullable": [false]
},
"hash": "7ff7478e1650decfe79020e2a545674bbd4b192dd0ef6331420a85897ad17166"
}

View file

@ -0,0 +1,25 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO membership_history (\n team_id, steam_id, role, joined, \"left\"\n ) VALUES ($1, $2, $3, $4, $5)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int4",
"Int8",
{
"Custom": {
"name": "membership_role",
"kind": {
"Enum": ["leader", "member"]
}
}
},
"Date",
"Date"
]
},
"nullable": []
},
"hash": "d27cf94073aa49a0d2d67b400f05cae073e87c1a96d6a4d419263922ae700958"
}