People: Change unknown face id #22

This commit is contained in:
Michael Mayer 2021-08-19 11:36:45 +02:00
parent 80d6fc3d1d
commit 6911c9f78b
2 changed files with 3 additions and 3 deletions

View file

@ -29,7 +29,7 @@ type Face struct {
// UnknownFace can be used as a placeholder for unknown faces.
var UnknownFace = Face{
ID: "zz",
ID: "00000000000000000000000000000000",
FaceSrc: SrcDefault,
SubjectUID: UnknownPerson.SubjectUID,
EmbeddingJSON: []byte{},
@ -42,7 +42,7 @@ func CreateUnknownFace() {
// TableName returns the entity database table name.
func (Face) TableName() string {
return "faces_dev3"
return "faces_dev4"
}
// NewFace returns a new face.

View file

@ -59,7 +59,7 @@ func CreateUnknownPerson() {
// TableName returns the entity database table name.
func (Subject) TableName() string {
return "subjects_dev3"
return "subjects_dev4"
}
// BeforeCreate creates a random UID if needed before inserting a new row to the database.