Refactor database models to majorly increase queries needed and decrease load times of home from 30 secs to 5 sec (we will be caching the rest to decrease even further via background tasks)
This commit is contained in:
parent
f7a9b2f823
commit
86c7eba10a
25 changed files with 1941 additions and 1560 deletions
79
seed/0002_Decks.json
Normal file
79
seed/0002_Decks.json
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
[
|
||||
{
|
||||
"model": "cards.deck",
|
||||
"pk": 1,
|
||||
"fields": {
|
||||
"name": "Promo-A",
|
||||
"cardset": "Promo-A",
|
||||
"hex_color": "#1070EB",
|
||||
"created_at": "2025-02-16T07:55:34.988Z",
|
||||
"updated_at": "2025-02-16T07:55:34.988Z"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "cards.deck",
|
||||
"pk": 2,
|
||||
"fields": {
|
||||
"name": "Genetic Apex: Mewtwo",
|
||||
"cardset": "A1",
|
||||
"hex_color": "#8040E0",
|
||||
"created_at": "2025-02-16T07:54:57.445Z",
|
||||
"updated_at": "2025-02-16T07:54:57.445Z"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "cards.deck",
|
||||
"pk": 3,
|
||||
"fields": {
|
||||
"name": "Genetic Apex: Charizard",
|
||||
"cardset": "A1",
|
||||
"hex_color": "#E00202",
|
||||
"created_at": "2025-02-16T07:54:52.381Z",
|
||||
"updated_at": "2025-02-16T07:54:52.381Z"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "cards.deck",
|
||||
"pk": 4,
|
||||
"fields": {
|
||||
"name": "Genetic Apex: Pikachu",
|
||||
"cardset": "A1",
|
||||
"hex_color": "#EB8600",
|
||||
"created_at": "2025-02-16T07:55:05.097Z",
|
||||
"updated_at": "2025-02-16T07:55:05.097Z"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "cards.deck",
|
||||
"pk": 5,
|
||||
"fields": {
|
||||
"name": "Mythical Island",
|
||||
"cardset": "A1a",
|
||||
"hex_color": "#20AA80",
|
||||
"created_at": "2025-02-16T07:55:11.916Z",
|
||||
"updated_at": "2025-02-16T07:55:11.916Z"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "cards.deck",
|
||||
"pk": 6,
|
||||
"fields": {
|
||||
"name": "Space-Time Smackdown: Dialga",
|
||||
"cardset": "A2",
|
||||
"hex_color": "#302FD9",
|
||||
"created_at": "2025-02-16T07:55:17.582Z",
|
||||
"updated_at": "2025-02-16T07:55:17.582Z"
|
||||
}
|
||||
},
|
||||
{
|
||||
"model": "cards.deck",
|
||||
"pk": 7,
|
||||
"fields": {
|
||||
"name": "Space-Time Smackdown: Palkia",
|
||||
"cardset": "A2",
|
||||
"hex_color": "#CF36E0",
|
||||
"created_at": "2025-02-16T07:55:27.503Z",
|
||||
"updated_at": "2025-02-16T07:55:27.503Z"
|
||||
}
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue