added details, deathdate, hair color, weight to performers and added details to studios (#1274)

* added details to performers and studios
* added deathdate, hair_color and weight to performers
* Simplify performer/studio create mutations
* Add changelog and recategorised

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
This commit is contained in:
julien0221
2021-04-16 07:06:35 +01:00
committed by GitHub
parent cd6b6b74eb
commit d673c4ce03
62 changed files with 748 additions and 132 deletions

View File

@@ -36,6 +36,9 @@ const (
piercings = "piercings"
tattoos = "tattoos"
twitter = "twitter"
details = "details"
hairColor = "hairColor"
weight = 60
)
var imageBytes = []byte("imageBytes")
@@ -46,6 +49,10 @@ var birthDate = models.SQLiteDate{
String: "2001-01-01",
Valid: true,
}
var deathDate = models.SQLiteDate{
String: "2021-02-02",
Valid: true,
}
var createTime time.Time = time.Date(2001, 01, 01, 0, 0, 0, 0, time.Local)
var updateTime time.Time = time.Date(2002, 01, 01, 0, 0, 0, 0, time.Local)
@@ -79,6 +86,13 @@ func createFullPerformer(id int, name string) *models.Performer {
UpdatedAt: models.SQLiteTimestamp{
Timestamp: updateTime,
},
Details: models.NullString(details),
DeathDate: deathDate,
HairColor: models.NullString(hairColor),
Weight: sql.NullInt64{
Int64: weight,
Valid: true,
},
}
}
@@ -119,7 +133,11 @@ func createFullJSONPerformer(name string, image string) *jsonschema.Performer {
UpdatedAt: models.JSONTime{
Time: updateTime,
},
Image: image,
Image: image,
Details: details,
DeathDate: deathDate.String,
HairColor: hairColor,
Weight: weight,
}
}