Archived
1

Pokememes database saving. Now we're stable

This commit is contained in:
Vladimir Hodakov
2017-10-07 02:23:25 +04:00
parent fe496d696f
commit 2724970e3d
20 changed files with 516 additions and 36 deletions

View File

@@ -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"`
}

View File

@@ -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"`
}

View File

@@ -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"`
}

View File

@@ -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"`
}

View File

@@ -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"`
}

View File

@@ -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"`
}