team archive

This commit is contained in:
Robin Appelman 2025-04-15 21:45:02 +02:00
commit f4082d619d
15 changed files with 514 additions and 37 deletions

View file

@ -0,0 +1,12 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO records (\n team_id, season, wins, losses\n ) VALUES ($1, $2, $3, $4)",
"describe": {
"columns": [],
"parameters": {
"Left": ["Int4", "Int4", "Int4", "Int4"]
},
"nullable": []
},
"hash": "0626bad337af6332795252dc9dc2af03eb471cbd38efe61afd712860bcd2fe62"
}

View file

@ -0,0 +1,24 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO memberships (\n team_id, steam_id, role, since\n ) VALUES ($1, $2, $3, $4)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int4",
"Int8",
{
"Custom": {
"name": "membership_role",
"kind": {
"Enum": ["leader", "member"]
}
}
},
"Timestamptz"
]
},
"nullable": []
},
"hash": "4e366cccbfd194d3b52eb7209caaccebb73bf731e3f7a9f274363966925e8ee6"
}

View file

@ -0,0 +1,18 @@
{
"db_name": "PostgreSQL",
"query": "select id from teams where region IS NULL and format != 'eights' order by id desc",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int4"
}
],
"parameters": {
"Left": []
},
"nullable": [false]
},
"hash": "51956c0afc079c48272920a4bd615c47c92908889c4291337bba3cbdd162f2c3"
}

View file

@ -0,0 +1,12 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO team_name_changes (\n team_id, from_tag, from_name, to_tag, to_name, date\n ) VALUES ($1, $2, $3, $4, $5, $6)",
"describe": {
"columns": [],
"parameters": {
"Left": ["Int4", "Varchar", "Varchar", "Varchar", "Varchar", "Date"]
},
"nullable": []
},
"hash": "5daea92ea98daa8e37969e9e7cdb7d1e97fea0c6e07f2ba5a2a513fc1bfc41c9"
}

View file

@ -0,0 +1,28 @@
{
"db_name": "PostgreSQL",
"query": "UPDATE teams SET region = $2 WHERE id = $1",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int4",
{
"Custom": {
"name": "region",
"kind": {
"Enum": [
"europe",
"north-america",
"south-america",
"asia",
"australia"
]
}
}
}
]
},
"nullable": []
},
"hash": "902d2815a624acb69228dd6e7afc698dac51107067d44659592a99493ad5473a"
}

View file

@ -0,0 +1,23 @@
{
"db_name": "PostgreSQL",
"query": "select greatest(max(team_home), max(team_away)) as max, least(min(team_home), min(team_away)) as min from matches limit 1;",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "max",
"type_info": "Int4"
},
{
"ordinal": 1,
"name": "min",
"type_info": "Int4"
}
],
"parameters": {
"Left": []
},
"nullable": [null, null]
},
"hash": "a559964ee9c6927333b32de71f1a666fae60ea06cb81a85b71345fb732343fdc"
}

View file

@ -0,0 +1,12 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO titles (\n team_id, title\n ) VALUES ($1, $2)",
"describe": {
"columns": [],
"parameters": {
"Left": ["Int4", "Varchar"]
},
"nullable": []
},
"hash": "b153094d4f619005eecae2c23568e10c2f76613e30935b654f67f1a7b07813ea"
}

View file

@ -0,0 +1,18 @@
{
"db_name": "PostgreSQL",
"query": "SELECT id FROM teams ORDER BY id DESC LIMIT 1",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Int4"
}
],
"parameters": {
"Left": []
},
"nullable": [false]
},
"hash": "dd9ca1267a43207ad70d6cf683291866c889d50dd3793a89936f0731151f8aec"
}

View file

@ -0,0 +1,43 @@
{
"db_name": "PostgreSQL",
"query": "INSERT INTO teams (\n id, tag, name, image, format, region, timezone, steam_group, division, description\n ) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)",
"describe": {
"columns": [],
"parameters": {
"Left": [
"Int4",
"Varchar",
"Varchar",
"Varchar",
{
"Custom": {
"name": "game_mode",
"kind": {
"Enum": ["highlander", "eights", "sixes", "fours", "ultiduo"]
}
}
},
{
"Custom": {
"name": "region",
"kind": {
"Enum": [
"europe",
"north-america",
"south-america",
"asia",
"australia"
]
}
}
},
"Varchar",
"Varchar",
"Varchar",
"Varchar"
]
},
"nullable": []
},
"hash": "e2a0bc541b90e1374bdbaf9f151af569ab906620c2b9da88d919a072c8073f6f"
}