Pokememes database saving. Now we're stable
This commit is contained in:
@@ -11,6 +11,6 @@ import (
|
||||
type Locations struct {
|
||||
Id int `db:"id"`
|
||||
Symbol string `db:"symbol"`
|
||||
Name string `db:"league_id"`
|
||||
Created_at *time.Time `db:"created_at"`
|
||||
Name string `db:"name"`
|
||||
Created_at time.Time `db:"created_at"`
|
||||
}
|
||||
|
@@ -14,6 +14,6 @@ type Players struct {
|
||||
League_id int `db:"league_id"`
|
||||
Squad_id int `db:"squad_id"`
|
||||
Status string `db:"status"`
|
||||
Created_at *time.Time `db:"created_at"`
|
||||
Updated_at *time.Time `db:"updated_at"`
|
||||
Created_at time.Time `db:"created_at"`
|
||||
Updated_at time.Time `db:"updated_at"`
|
||||
}
|
||||
|
@@ -11,15 +11,15 @@ import (
|
||||
type Pokememes struct {
|
||||
Id int `db:"id"`
|
||||
Grade int `db:"grade"`
|
||||
Name string `db:"league_id"`
|
||||
Name string `db:"name"`
|
||||
Description string `db:"description"`
|
||||
Attack int `db:"attack"`
|
||||
HP int `db:"int"`
|
||||
HP int `db:"hp"`
|
||||
MP int `db:"mp"`
|
||||
Defence int `db:"defence"`
|
||||
Price int `db:"price"`
|
||||
Purchaseable bool `db:"purchaseable"`
|
||||
Image_url string `db:"image_url"`
|
||||
Player_id int `db:"player_id"`
|
||||
Created_at *time.Time `db:"created_at"`
|
||||
Created_at time.Time `db:"created_at"`
|
||||
}
|
||||
|
@@ -12,5 +12,5 @@ type PokememesElements struct {
|
||||
Id int `db:"id"`
|
||||
Pokememe_id int `db:"pokememe_id"`
|
||||
Element_id int `db:"element_id"`
|
||||
Created_at *time.Time `db:"created_at"`
|
||||
Created_at time.Time `db:"created_at"`
|
||||
}
|
||||
|
@@ -12,5 +12,5 @@ type PokememesLocations struct {
|
||||
Id int `db:"id"`
|
||||
Pokememe_id int `db:"pokememe_id"`
|
||||
Location_id int `db:"location_id"`
|
||||
Created_at *time.Time `db:"created_at"`
|
||||
Created_at time.Time `db:"created_at"`
|
||||
}
|
||||
|
@@ -19,5 +19,5 @@ type Profiles struct {
|
||||
Power int `db:"power"`
|
||||
Weapon_id int `db:"weapon_id"`
|
||||
Crystalls int `db:"crystalls"`
|
||||
Created_at *time.Time `db:"created_at"`
|
||||
Created_at time.Time `db:"created_at"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user