Skip to content

Commit e738dc1

Browse files
authored
feature: demo management (#51)
1 parent 158c3aa commit e738dc1

7 files changed

Lines changed: 298 additions & 19 deletions

File tree

generated/schema.graphql

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8192,9 +8192,19 @@ input match_lineups_variance_order_by {
81928192
columns and relationships of "match_map_demos"
81938193
"""
81948194
type match_map_demos {
8195+
"""
8196+
A computed field, executes function "demo_download_url"
8197+
"""
8198+
download_url: String
81958199
file: String!
81968200
id: uuid!
8201+
8202+
"""An object relationship"""
8203+
match: matches!
81978204
match_id: uuid!
8205+
8206+
"""An object relationship"""
8207+
match_map: match_maps!
81988208
match_map_id: uuid!
81998209
size: Int!
82008210
}
@@ -8281,9 +8291,12 @@ input match_map_demos_bool_exp {
82818291
_and: [match_map_demos_bool_exp!]
82828292
_not: match_map_demos_bool_exp
82838293
_or: [match_map_demos_bool_exp!]
8294+
download_url: String_comparison_exp
82848295
file: String_comparison_exp
82858296
id: uuid_comparison_exp
8297+
match: matches_bool_exp
82868298
match_id: uuid_comparison_exp
8299+
match_map: match_maps_bool_exp
82878300
match_map_id: uuid_comparison_exp
82888301
size: Int_comparison_exp
82898302
}
@@ -8311,13 +8324,19 @@ input type for inserting data into table "match_map_demos"
83118324
input match_map_demos_insert_input {
83128325
file: String
83138326
id: uuid
8327+
match: matches_obj_rel_insert_input
83148328
match_id: uuid
8329+
match_map: match_maps_obj_rel_insert_input
83158330
match_map_id: uuid
83168331
size: Int
83178332
}
83188333

83198334
"""aggregate max on columns"""
83208335
type match_map_demos_max_fields {
8336+
"""
8337+
A computed field, executes function "demo_download_url"
8338+
"""
8339+
download_url: String
83218340
file: String
83228341
id: uuid
83238342
match_id: uuid
@@ -8338,6 +8357,10 @@ input match_map_demos_max_order_by {
83388357

83398358
"""aggregate min on columns"""
83408359
type match_map_demos_min_fields {
8360+
"""
8361+
A computed field, executes function "demo_download_url"
8362+
"""
8363+
download_url: String
83418364
file: String
83428365
id: uuid
83438366
match_id: uuid
@@ -8378,9 +8401,12 @@ input match_map_demos_on_conflict {
83788401

83798402
"""Ordering options when selecting data from "match_map_demos"."""
83808403
input match_map_demos_order_by {
8404+
download_url: order_by
83818405
file: order_by
83828406
id: order_by
8407+
match: matches_order_by
83838408
match_id: order_by
8409+
match_map: match_maps_order_by
83848410
match_map_id: order_by
83858411
size: order_by
83868412
}
@@ -9553,7 +9579,7 @@ type match_maps {
95539579
): match_map_demos_aggregate!
95549580

95559581
"""
9556-
A computed field, executes function "demo_download_url"
9582+
A computed field, executes function "match_map_demo_download_url"
95579583
"""
95589584
demos_download_url: String
95599585

@@ -10127,7 +10153,7 @@ type match_maps_max_fields {
1012710153
created_at: timestamptz
1012810154

1012910155
"""
10130-
A computed field, executes function "demo_download_url"
10156+
A computed field, executes function "match_map_demo_download_url"
1013110157
"""
1013210158
demos_download_url: String
1013310159

@@ -10177,7 +10203,7 @@ type match_maps_min_fields {
1017710203
created_at: timestamptz
1017810204

1017910205
"""
10180-
A computed field, executes function "demo_download_url"
10206+
A computed field, executes function "match_map_demo_download_url"
1018110207
"""
1018210208
demos_download_url: String
1018310209

generated/schema.ts

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2691,9 +2691,15 @@ export interface match_lineups_variance_fields {
26912691

26922692
/** columns and relationships of "match_map_demos" */
26932693
export interface match_map_demos {
2694+
/** A computed field, executes function "demo_download_url" */
2695+
download_url: (Scalars['String'] | null)
26942696
file: Scalars['String']
26952697
id: Scalars['uuid']
2698+
/** An object relationship */
2699+
match: matches
26962700
match_id: Scalars['uuid']
2701+
/** An object relationship */
2702+
match_map: match_maps
26972703
match_map_id: Scalars['uuid']
26982704
size: Scalars['Int']
26992705
__typename: 'match_map_demos'
@@ -2738,6 +2744,8 @@ export type match_map_demos_constraint = 'match_demos_pkey'
27382744

27392745
/** aggregate max on columns */
27402746
export interface match_map_demos_max_fields {
2747+
/** A computed field, executes function "demo_download_url" */
2748+
download_url: (Scalars['String'] | null)
27412749
file: (Scalars['String'] | null)
27422750
id: (Scalars['uuid'] | null)
27432751
match_id: (Scalars['uuid'] | null)
@@ -2749,6 +2757,8 @@ export interface match_map_demos_max_fields {
27492757

27502758
/** aggregate min on columns */
27512759
export interface match_map_demos_min_fields {
2760+
/** A computed field, executes function "demo_download_url" */
2761+
download_url: (Scalars['String'] | null)
27522762
file: (Scalars['String'] | null)
27532763
id: (Scalars['uuid'] | null)
27542764
match_id: (Scalars['uuid'] | null)
@@ -3127,7 +3137,7 @@ export interface match_maps {
31273137
demos: match_map_demos[]
31283138
/** An aggregate relationship */
31293139
demos_aggregate: match_map_demos_aggregate
3130-
/** A computed field, executes function "demo_download_url" */
3140+
/** A computed field, executes function "match_map_demo_download_url" */
31313141
demos_download_url: (Scalars['String'] | null)
31323142
/** A computed field, executes function "match_map_demo_total_size" */
31333143
demos_total_size: (Scalars['Int'] | null)
@@ -3242,7 +3252,7 @@ export type match_maps_constraint = 'match_maps_match_id_order_key' | 'match_map
32423252
/** aggregate max on columns */
32433253
export interface match_maps_max_fields {
32443254
created_at: (Scalars['timestamptz'] | null)
3245-
/** A computed field, executes function "demo_download_url" */
3255+
/** A computed field, executes function "match_map_demo_download_url" */
32463256
demos_download_url: (Scalars['String'] | null)
32473257
/** A computed field, executes function "match_map_demo_total_size" */
32483258
demos_total_size: (Scalars['Int'] | null)
@@ -3266,7 +3276,7 @@ export interface match_maps_max_fields {
32663276
/** aggregate min on columns */
32673277
export interface match_maps_min_fields {
32683278
created_at: (Scalars['timestamptz'] | null)
3269-
/** A computed field, executes function "demo_download_url" */
3279+
/** A computed field, executes function "match_map_demo_download_url" */
32703280
demos_download_url: (Scalars['String'] | null)
32713281
/** A computed field, executes function "match_map_demo_total_size" */
32723282
demos_total_size: (Scalars['Int'] | null)
@@ -16252,9 +16262,15 @@ export interface match_lineups_variance_order_by {coach_steam_id?: (order_by | n
1625216262

1625316263
/** columns and relationships of "match_map_demos" */
1625416264
export interface match_map_demosGenqlSelection{
16265+
/** A computed field, executes function "demo_download_url" */
16266+
download_url?: boolean | number
1625516267
file?: boolean | number
1625616268
id?: boolean | number
16269+
/** An object relationship */
16270+
match?: matchesGenqlSelection
1625716271
match_id?: boolean | number
16272+
/** An object relationship */
16273+
match_map?: match_mapsGenqlSelection
1625816274
match_map_id?: boolean | number
1625916275
size?: boolean | number
1626016276
__typename?: boolean | number
@@ -16316,19 +16332,21 @@ export interface match_map_demos_avg_order_by {size?: (order_by | null)}
1631616332

1631716333

1631816334
/** Boolean expression to filter rows from the table "match_map_demos". All fields are combined with a logical 'AND'. */
16319-
export interface match_map_demos_bool_exp {_and?: (match_map_demos_bool_exp[] | null),_not?: (match_map_demos_bool_exp | null),_or?: (match_map_demos_bool_exp[] | null),file?: (String_comparison_exp | null),id?: (uuid_comparison_exp | null),match_id?: (uuid_comparison_exp | null),match_map_id?: (uuid_comparison_exp | null),size?: (Int_comparison_exp | null)}
16335+
export interface match_map_demos_bool_exp {_and?: (match_map_demos_bool_exp[] | null),_not?: (match_map_demos_bool_exp | null),_or?: (match_map_demos_bool_exp[] | null),download_url?: (String_comparison_exp | null),file?: (String_comparison_exp | null),id?: (uuid_comparison_exp | null),match?: (matches_bool_exp | null),match_id?: (uuid_comparison_exp | null),match_map?: (match_maps_bool_exp | null),match_map_id?: (uuid_comparison_exp | null),size?: (Int_comparison_exp | null)}
1632016336

1632116337

1632216338
/** input type for incrementing numeric columns in table "match_map_demos" */
1632316339
export interface match_map_demos_inc_input {size?: (Scalars['Int'] | null)}
1632416340

1632516341

1632616342
/** input type for inserting data into table "match_map_demos" */
16327-
export interface match_map_demos_insert_input {file?: (Scalars['String'] | null),id?: (Scalars['uuid'] | null),match_id?: (Scalars['uuid'] | null),match_map_id?: (Scalars['uuid'] | null),size?: (Scalars['Int'] | null)}
16343+
export interface match_map_demos_insert_input {file?: (Scalars['String'] | null),id?: (Scalars['uuid'] | null),match?: (matches_obj_rel_insert_input | null),match_id?: (Scalars['uuid'] | null),match_map?: (match_maps_obj_rel_insert_input | null),match_map_id?: (Scalars['uuid'] | null),size?: (Scalars['Int'] | null)}
1632816344

1632916345

1633016346
/** aggregate max on columns */
1633116347
export interface match_map_demos_max_fieldsGenqlSelection{
16348+
/** A computed field, executes function "demo_download_url" */
16349+
download_url?: boolean | number
1633216350
file?: boolean | number
1633316351
id?: boolean | number
1633416352
match_id?: boolean | number
@@ -16345,6 +16363,8 @@ export interface match_map_demos_max_order_by {file?: (order_by | null),id?: (or
1634516363

1634616364
/** aggregate min on columns */
1634716365
export interface match_map_demos_min_fieldsGenqlSelection{
16366+
/** A computed field, executes function "demo_download_url" */
16367+
download_url?: boolean | number
1634816368
file?: boolean | number
1634916369
id?: boolean | number
1635016370
match_id?: boolean | number
@@ -16375,7 +16395,7 @@ export interface match_map_demos_on_conflict {constraint: match_map_demos_constr
1637516395

1637616396

1637716397
/** Ordering options when selecting data from "match_map_demos". */
16378-
export interface match_map_demos_order_by {file?: (order_by | null),id?: (order_by | null),match_id?: (order_by | null),match_map_id?: (order_by | null),size?: (order_by | null)}
16398+
export interface match_map_demos_order_by {download_url?: (order_by | null),file?: (order_by | null),id?: (order_by | null),match?: (matches_order_by | null),match_id?: (order_by | null),match_map?: (match_maps_order_by | null),match_map_id?: (order_by | null),size?: (order_by | null)}
1637916399

1638016400

1638116401
/** primary key columns input for table: match_map_demos */
@@ -16994,7 +17014,7 @@ export interface match_mapsGenqlSelection{
1699417014
order_by?: (match_map_demos_order_by[] | null),
1699517015
/** filter the rows returned */
1699617016
where?: (match_map_demos_bool_exp | null)} })
16997-
/** A computed field, executes function "demo_download_url" */
17017+
/** A computed field, executes function "match_map_demo_download_url" */
1699817018
demos_download_url?: boolean | number
1699917019
/** A computed field, executes function "match_map_demo_total_size" */
1700017020
demos_total_size?: boolean | number
@@ -17319,7 +17339,7 @@ export interface match_maps_insert_input {created_at?: (Scalars['timestamptz'] |
1731917339
/** aggregate max on columns */
1732017340
export interface match_maps_max_fieldsGenqlSelection{
1732117341
created_at?: boolean | number
17322-
/** A computed field, executes function "demo_download_url" */
17342+
/** A computed field, executes function "match_map_demo_download_url" */
1732317343
demos_download_url?: boolean | number
1732417344
/** A computed field, executes function "match_map_demo_total_size" */
1732517345
demos_total_size?: boolean | number
@@ -17348,7 +17368,7 @@ export interface match_maps_max_order_by {created_at?: (order_by | null),ended_a
1734817368
/** aggregate min on columns */
1734917369
export interface match_maps_min_fieldsGenqlSelection{
1735017370
created_at?: boolean | number
17351-
/** A computed field, executes function "demo_download_url" */
17371+
/** A computed field, executes function "match_map_demo_download_url" */
1735217372
demos_download_url?: boolean | number
1735317373
/** A computed field, executes function "match_map_demo_total_size" */
1735417374
demos_total_size?: boolean | number

generated/types.ts

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11043,15 +11043,24 @@ export default {
1104311043
]
1104411044
},
1104511045
"match_map_demos": {
11046+
"download_url": [
11047+
11
11048+
],
1104611049
"file": [
1104711050
11
1104811051
],
1104911052
"id": [
1105011053
2033
1105111054
],
11055+
"match": [
11056+
995
11057+
],
1105211058
"match_id": [
1105311059
2033
1105411060
],
11061+
"match_map": [
11062+
877
11063+
],
1105511064
"match_map_id": [
1105611065
2033
1105711066
],
@@ -11220,15 +11229,24 @@ export default {
1122011229
"_or": [
1122111230
780
1122211231
],
11232+
"download_url": [
11233+
13
11234+
],
1122311235
"file": [
1122411236
13
1122511237
],
1122611238
"id": [
1122711239
2034
1122811240
],
11241+
"match": [
11242+
1004
11243+
],
1122911244
"match_id": [
1123011245
2034
1123111246
],
11247+
"match_map": [
11248+
886
11249+
],
1123211250
"match_map_id": [
1123311251
2034
1123411252
],
@@ -11255,9 +11273,15 @@ export default {
1125511273
"id": [
1125611274
2033
1125711275
],
11276+
"match": [
11277+
1013
11278+
],
1125811279
"match_id": [
1125911280
2033
1126011281
],
11282+
"match_map": [
11283+
895
11284+
],
1126111285
"match_map_id": [
1126211286
2033
1126311287
],
@@ -11269,6 +11293,9 @@ export default {
1126911293
]
1127011294
},
1127111295
"match_map_demos_max_fields": {
11296+
"download_url": [
11297+
11
11298+
],
1127211299
"file": [
1127311300
11
1127411301
],
@@ -11309,6 +11336,9 @@ export default {
1130911336
]
1131011337
},
1131111338
"match_map_demos_min_fields": {
11339+
"download_url": [
11340+
11
11341+
],
1131211342
"file": [
1131311343
11
1131411344
],
@@ -11374,15 +11404,24 @@ export default {
1137411404
]
1137511405
},
1137611406
"match_map_demos_order_by": {
11407+
"download_url": [
11408+
1148
11409+
],
1137711410
"file": [
1137811411
1148
1137911412
],
1138011413
"id": [
1138111414
1148
1138211415
],
11416+
"match": [
11417+
1015
11418+
],
1138311419
"match_id": [
1138411420
1148
1138511421
],
11422+
"match_map": [
11423+
897
11424+
],
1138611425
"match_map_id": [
1138711426
1148
1138811427
],

hasura/metadata/databases/default/tables/public_match_map_demos.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
table:
22
name: match_map_demos
33
schema: public
4+
object_relationships:
5+
- name: match
6+
using:
7+
foreign_key_constraint_on: match_id
8+
- name: match_map
9+
using:
10+
foreign_key_constraint_on: match_map_id
411
computed_fields:
512
- name: download_url
613
definition:

src/matches/enums/MatchQueues.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export enum MatchQueues {
2+
CleanDemos = "clean-demos",
23
MatchServers = "match-servers",
34
ScheduledMatches = "scheduled-matches",
45
EloCalculation = "elo-calculation",

0 commit comments

Comments
 (0)