mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
* Remove ID from PerformerPartial * Separate studio model from sqlite model * Separate movie model from sqlite model * Separate tag model from sqlite model * Separate saved filter model from sqlite model * Separate scene marker model from sqlite model * Separate gallery chapter model from sqlite model * Move ErrNoRows checks into sqlite, improve empty result error messages * Move SQLiteDate and SQLiteTimestamp to sqlite * Use changesetTranslator everywhere, refactor for consistency * Make PerformerStore.DestroyImage private * Fix rating on movie create
25 lines
546 B
Go
25 lines
546 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type SceneMarker struct {
|
|
ID int `json:"id"`
|
|
Title string `json:"title"`
|
|
Seconds float64 `json:"seconds"`
|
|
PrimaryTagID int `json:"primary_tag_id"`
|
|
SceneID int `json:"scene_id"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
UpdatedAt time.Time `json:"updated_at"`
|
|
}
|
|
|
|
type SceneMarkers []*SceneMarker
|
|
|
|
func (m *SceneMarkers) Append(o interface{}) {
|
|
*m = append(*m, o.(*SceneMarker))
|
|
}
|
|
|
|
func (m *SceneMarkers) New() interface{} {
|
|
return &SceneMarker{}
|
|
}
|