Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
webapi: fix seed command with real db
Browse files Browse the repository at this point in the history
  • Loading branch information
verdie-g committed Aug 12, 2023
1 parent a140fc5 commit 6143480
Showing 1 changed file with 51 additions and 72 deletions.
123 changes: 51 additions & 72 deletions src/Application/System/Commands/SeedDataCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ private async Task AddDevelopmentData()
HeirloomPoints = 12,
ExperienceMultiplier = 1.09f,
Avatar = new Uri("https://avatars.akamai.steamstatic.com/d51d5155b1a564421c0b3fd5fb7eed7c4474e73d_full.jpg"),
ActiveCharacterId = 5,
};
User kadse = new()
{
Expand All @@ -123,7 +122,6 @@ private async Task AddDevelopmentData()
HeirloomPoints = 2,
ExperienceMultiplier = 1.09f,
Avatar = new Uri("https://avatars.akamai.steamstatic.com/8762690248c6809b0303cc803a1b2dacf3a12cd5_full.jpg"),
ActiveCharacterId = 12,
};
User laHire = new()
{
Expand Down Expand Up @@ -522,205 +520,186 @@ private async Task AddDevelopmentData()

ActivityLog activityLogUserCreated1 = new()
{
Id = 1,
Type = ActivityLogType.UserCreated,
UserId = 2,
User = namidaka,
Metadata = { },
};
ActivityLog activityLogUserDeleted1 = new()
{
Id = 2,
Type = ActivityLogType.UserDeleted,
UserId = 2,
User = namidaka,
Metadata = { },
};
ActivityLog activityLogUserRenamed1 = new()
{
Id = 3,
Type = ActivityLogType.UserRenamed,
UserId = 2,
Metadata = new ActivityLogMetadata[]
User = namidaka,
Metadata =
{
new("newName", "Salt"),
new("oldName", "Duke Salt of Savoy"),
}.ToList(),
},
};
ActivityLog activityLogUserReward1 = new()
{
Id = 4,
Type = ActivityLogType.UserRewarded,
UserId = 2,
Metadata = new ActivityLogMetadata[]
User = namidaka,
Metadata =
{
new("gold", "120000"),
new("heirloomPoints", "3"),
}.ToList(),
},
};
ActivityLog activityLogItemBought1 = new()
{
Id = 5,
Type = ActivityLogType.ItemBought,
UserId = 2,
Metadata = new ActivityLogMetadata[]
User = namidaka,
Metadata =
{
new("itemId", "crpg_northern_round_shield"),
new("price", "12000"),
}.ToList(),
},
};
ActivityLog activityLogItemSold1 = new()
{
Id = 6,
Type = ActivityLogType.ItemSold,
UserId = 2,
Metadata = new ActivityLogMetadata[]
User = namidaka,
Metadata =
{
new("itemId", "crpg_northern_round_shield"),
new("price", "12000"),
}.ToList(),
},
};
ActivityLog activityLogItemBroke1 = new()
{
Id = 7,
Type = ActivityLogType.ItemBroke,
UserId = 2,
Metadata = new ActivityLogMetadata[]
User = namidaka,
Metadata =
{
new("itemId", "crpg_northern_round_shield"),
}.ToList(),
},
};
ActivityLog activityLogItemUpgraded1 = new()
{
Id = 8,
Type = ActivityLogType.ItemUpgraded,
UserId = 2,
Metadata = new ActivityLogMetadata[]
User = namidaka,
Metadata =
{
new("itemId", "crpg_northern_round_shield"),
new("price", "1000"),
new("heirloomPoints", "1"),
}.ToList(),
},
};
ActivityLog activityLogCharacterCreated1 = new()
{
Id = 9,
Type = ActivityLogType.CharacterCreated,
UserId = 2,
Metadata = new ActivityLogMetadata[]
User = namidaka,
Metadata =
{
new("characterId", "123"),
}.ToList(),
},
};
ActivityLog activityLogCharacterDeleted1 = new()
{
Id = 10,
Type = ActivityLogType.CharacterDeleted,
UserId = 2,
Metadata = new ActivityLogMetadata[]
User = namidaka,
Metadata =
{
new("characterId", "123"),
new("generation", "13"),
new("level", "36"),
}.ToList(),
},
};
ActivityLog activityLogCharacterRespecialized1 = new()
{
Id = 11,
Type = ActivityLogType.CharacterRespecialized,
UserId = 2,
Metadata = new ActivityLogMetadata[]
User = namidaka,
Metadata =
{
new("characterId", "123"),
new("price", "120000"),
}.ToList(),
},
};
ActivityLog activityLogCharacterRetired1 = new()
{
Id = 12,
Type = ActivityLogType.CharacterRetired,
UserId = 2,
Metadata = new ActivityLogMetadata[]
User = namidaka,
Metadata =
{
new("characterId", "123"),
new("level", "34"),
}.ToList(),
},
};
ActivityLog activityLogCharacterRewarded1 = new()
{
Id = 13,
Type = ActivityLogType.CharacterRewarded,
UserId = 2,
Metadata = new ActivityLogMetadata[]
User = namidaka,
Metadata =
{
new("characterId", "123"),
new("experience", "1000000"),
}.ToList(),
},
};
ActivityLog activityLogServerJoined1 = new()
{
Id = 14,
Type = ActivityLogType.ServerJoined,
UserId = 2,
User = namidaka,
Metadata = { },
};
ActivityLog activityLogChatMessageSent1 = new()
{
Id = 15,
Type = ActivityLogType.ChatMessageSent,
UserId = 2,
Metadata = new ActivityLogMetadata[]
User = namidaka,
Metadata =
{
new("message", "Fluttershy is best"),
new("instance", "crpg01a"),
}.ToList(),
},
};
ActivityLog activityLogChatMessageSent2 = new()
{
Id = 16,
Type = ActivityLogType.ChatMessageSent,
UserId = 1,
Metadata = new ActivityLogMetadata[]
User = takeo,
Metadata =
{
new("message", "No, Rarity the best"),
new("instance", "crpg01a"),
}.ToList(),
},
};
ActivityLog activityLogChatMessageSent3 = new()
{
Id = 17,
Type = ActivityLogType.ChatMessageSent,
UserId = 1,
User = takeo,
CreatedAt = DateTime.UtcNow.AddMinutes(-3),
Metadata = new ActivityLogMetadata[]
Metadata =
{
new("message", "Do you get it?"),
new("instance", "crpg01a"),
}.ToList(),
},
};
ActivityLog activityLogTeamHit1 = new()
{
Id = 18,
Type = ActivityLogType.TeamHit,
UserId = 2,
User = namidaka,
CreatedAt = DateTime.UtcNow.AddMinutes(+3),
Metadata = new ActivityLogMetadata[]
Metadata =
{
new("targetUserId", "1"),
new("damage", "123"),
new("instance", "crpg01a"),
}.ToList(),
},
};
ActivityLog activityLogTeamHit2 = new()
{
Id = 19,
Type = ActivityLogType.TeamHit,
UserId = 1,
User = takeo,
CreatedAt = DateTime.UtcNow.AddMinutes(-1),
Metadata = new ActivityLogMetadata[]
Metadata =
{
new("targetUserId", "2"),
new("damage", "18"),
new("instance", "crpg01a"),
}.ToList(),
},
};

ActivityLog[] newActivityLogs =
Expand Down

0 comments on commit 6143480

Please sign in to comment.