mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
* Add organized boolean to scene model (#729) * Add organized button to scene page * Add flag to galleries and images * Import/export changes * Make organized flag not null * Ignore organized scenes for autotag Co-authored-by: com1234 <com1234@notarealemail.com>
25 lines
332 B
Go
25 lines
332 B
Go
package modelstest
|
|
|
|
import "database/sql"
|
|
|
|
func NullString(v string) sql.NullString {
|
|
return sql.NullString{
|
|
String: v,
|
|
Valid: true,
|
|
}
|
|
}
|
|
|
|
func NullInt64(v int64) sql.NullInt64 {
|
|
return sql.NullInt64{
|
|
Int64: v,
|
|
Valid: true,
|
|
}
|
|
}
|
|
|
|
func NullBool(v bool) sql.NullBool {
|
|
return sql.NullBool{
|
|
Bool: v,
|
|
Valid: true,
|
|
}
|
|
}
|