Extract EXIF data from images
This required a schema change and actually dumps all existing photo data from the public reports page. That's probably fine since it's not deployed to any customers so all data is currently test data.
This commit is contained in:
parent
b95a3275ff
commit
079d20c086
43 changed files with 7208 additions and 3094 deletions
132
db/dbinfo/publicreport.pool_image.bob.go
Normal file
132
db/dbinfo/publicreport.pool_image.bob.go
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
// Code generated by BobGen psql v0.42.1. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package dbinfo
|
||||
|
||||
import "github.com/aarondl/opt/null"
|
||||
|
||||
var PublicreportPoolImages = Table[
|
||||
publicreportPoolImageColumns,
|
||||
publicreportPoolImageIndexes,
|
||||
publicreportPoolImageForeignKeys,
|
||||
publicreportPoolImageUniques,
|
||||
publicreportPoolImageChecks,
|
||||
]{
|
||||
Schema: "publicreport",
|
||||
Name: "pool_image",
|
||||
Columns: publicreportPoolImageColumns{
|
||||
ImageID: column{
|
||||
Name: "image_id",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
PoolID: column{
|
||||
Name: "pool_id",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: publicreportPoolImageIndexes{
|
||||
PoolImagePkey: index{
|
||||
Type: "btree",
|
||||
Name: "pool_image_pkey",
|
||||
Columns: []indexColumn{
|
||||
{
|
||||
Name: "image_id",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
{
|
||||
Name: "pool_id",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
},
|
||||
Unique: true,
|
||||
Comment: "",
|
||||
NullsFirst: []bool{false, false},
|
||||
NullsDistinct: false,
|
||||
Where: "",
|
||||
Include: []string{},
|
||||
},
|
||||
},
|
||||
PrimaryKey: &constraint{
|
||||
Name: "pool_image_pkey",
|
||||
Columns: []string{"image_id", "pool_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignKeys: publicreportPoolImageForeignKeys{
|
||||
PublicreportPoolImagePoolImageImageIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "publicreport.pool_image.pool_image_image_id_fkey",
|
||||
Columns: []string{"image_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "publicreport.image",
|
||||
ForeignColumns: []string{"id"},
|
||||
},
|
||||
PublicreportPoolImagePoolImagePoolIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "publicreport.pool_image.pool_image_pool_id_fkey",
|
||||
Columns: []string{"pool_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "publicreport.pool",
|
||||
ForeignColumns: []string{"id"},
|
||||
},
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type publicreportPoolImageColumns struct {
|
||||
ImageID column
|
||||
PoolID column
|
||||
}
|
||||
|
||||
func (c publicreportPoolImageColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.ImageID, c.PoolID,
|
||||
}
|
||||
}
|
||||
|
||||
type publicreportPoolImageIndexes struct {
|
||||
PoolImagePkey index
|
||||
}
|
||||
|
||||
func (i publicreportPoolImageIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.PoolImagePkey,
|
||||
}
|
||||
}
|
||||
|
||||
type publicreportPoolImageForeignKeys struct {
|
||||
PublicreportPoolImagePoolImageImageIDFkey foreignKey
|
||||
PublicreportPoolImagePoolImagePoolIDFkey foreignKey
|
||||
}
|
||||
|
||||
func (f publicreportPoolImageForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{
|
||||
f.PublicreportPoolImagePoolImageImageIDFkey, f.PublicreportPoolImagePoolImagePoolIDFkey,
|
||||
}
|
||||
}
|
||||
|
||||
type publicreportPoolImageUniques struct{}
|
||||
|
||||
func (u publicreportPoolImageUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type publicreportPoolImageChecks struct{}
|
||||
|
||||
func (c publicreportPoolImageChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue