Ajout de booking pour des One on One avec son coach,
Demande par discord au coach pour confirmer la rencontre Ajout de message automatisé discord pour avertir des nouveaux match et rappel 24h a l'avance
This commit is contained in:
@@ -45,7 +45,7 @@ def seed_database():
|
||||
{'username': 'president', 'password': 'password', 'role': 'president', 'full_name': 'Sarah Johnson', 'email': '[email protected]', 'phone': '555-0101'},
|
||||
{'username': 'manager1', 'password': 'password', 'role': 'manager', 'full_name': 'Mike Williams', 'email': '[email protected]', 'phone': '555-0102'},
|
||||
{'username': 'manager2', 'password': 'password', 'role': 'manager', 'full_name': 'Emily Davis', 'email': '[email protected]', 'phone': '555-0103'},
|
||||
{'username': 'coach1', 'password': 'password', 'role': 'coach', 'full_name': 'Coach Thompson', 'email': '[email protected]', 'phone': '555-0104'},
|
||||
{'username': 'coach1', 'password': 'password', 'role': 'coach', 'full_name': 'Coach Thompson', 'email': '[email protected]', 'phone': '555-0104', 'discord_user_id': '484107446298738689'},
|
||||
{'username': 'coach2', 'password': 'password', 'role': 'coach', 'full_name': 'Coach Martinez', 'email': '[email protected]', 'phone': '555-0105'},
|
||||
{'username': 'coach3', 'password': 'password', 'role': 'coach', 'full_name': 'Coach Anderson', 'email': '[email protected]', 'phone': '555-0106'},
|
||||
{'username': 'scout1', 'password': 'password', 'role': 'scout', 'full_name': 'Alex Rivera', 'email': '[email protected]', 'phone': '555-0107'},
|
||||
@@ -53,9 +53,9 @@ def seed_database():
|
||||
|
||||
# Create players with E-Sports profile data (gamertags per game)
|
||||
player_data = [
|
||||
{'username': 'jplayer1', 'full_name': 'nordjan', 'email': '[email protected]', 'games': 'Valorant,Counter-Strike 2, Rainbow Six Siege, Rocket League, Overwatch 2',
|
||||
{'username': 'jplayer1', 'full_name': 'nordjan', 'email': '[email protected]', 'games': 'Valorant, Counter-Strike 2, Rainbow Six Siege, Rocket League, Overwatch 2',
|
||||
'gamertags': {'Valorant': 'nordjan#bad', 'Counter-Strike 2': 'nordjan', 'Rainbow Six Siege': 'n0rd-vpn', 'Rocket League': 'nordjiano'},
|
||||
'discord': 'nordjan', 'league_os': 'https://leagueos.gg/player/nordjan'},
|
||||
'discord': 'nordjan', 'discord_user_id': '484107446298738689', 'league_os': 'https://leagueos.gg/player/nordjan'},
|
||||
{'username': 'jplayer2', 'full_name': 'Emma Garcia', 'email': '[email protected]', 'games': 'League of Legends,Valorant',
|
||||
'gamertags': {'League of Legends': 'emmagarcia_lol', 'Valorant': 'emmagarcia_val'},
|
||||
'discord': 'EmmaG#4452', 'league_os': 'https://leagueos.gg/player/emmagarcia'},
|
||||
@@ -90,7 +90,7 @@ def seed_database():
|
||||
'username': data['username'], 'password': 'password', 'role': 'player',
|
||||
'full_name': data['full_name'], 'email': data['email'], 'phone': f'555-01{i:02d}',
|
||||
'games': data['games'], 'gamertags': data.get('gamertags', {}),
|
||||
'discord_username': data['discord'], 'league_os_profile': data['league_os']
|
||||
'discord_username': data['discord'], 'discord_user_id': data['discord_user_id'], 'league_os_profile': data['league_os']
|
||||
})
|
||||
|
||||
users = []
|
||||
@@ -105,6 +105,7 @@ def seed_database():
|
||||
phone=data.get('phone', ''),
|
||||
games=data.get('games'),
|
||||
discord_username=data.get('discord_username'),
|
||||
discord_user_id=data.get('discord_user_id'),
|
||||
league_os_profile=data.get('league_os_profile')
|
||||
)
|
||||
db.session.add(user)
|
||||
@@ -124,8 +125,11 @@ def seed_database():
|
||||
|
||||
# Create gamertags for players
|
||||
gamertag_data = [
|
||||
{'user': users[7], 'game': 'Valorant', 'gamertag': 'jameswilson_val'},
|
||||
{'user': users[7], 'game': 'Counter-Strike 2', 'gamertag': 'jameswilson_cs'},
|
||||
{'user': users[7], 'game': 'Valorant', 'gamertag': 'nordjan#bad'},
|
||||
{'user': users[7], 'game': 'Counter-Strike 2', 'gamertag': 'nordjan'},
|
||||
{'user': users[7], 'game': 'Rainbow Six Siege', 'gamertag': 'nordjan', 'platform': 'Ubisoft'},
|
||||
{'user': users[7], 'game': 'Rocket League', 'gamertag': 'nordjiano', 'platform': 'Epic'},
|
||||
{'user': users[7], 'game': 'Overwatch 2', 'gamertag': 'nordjan', 'platform': 'PC'},
|
||||
{'user': users[8], 'game': 'League of Legends', 'gamertag': 'emmagarcia_lol'},
|
||||
{'user': users[8], 'game': 'Valorant', 'gamertag': 'emmagarcia_val'},
|
||||
{'user': users[9], 'game': 'Apex Legends', 'gamertag': 'liambrown_apex', 'platform': 'PC'},
|
||||
|
||||
Reference in New Issue
Block a user