Alter report submission page to request reporter name and consent
This also adds the new mechanism for handling notifications on reports
This commit is contained in:
parent
9328e7a2f8
commit
57191fa222
45 changed files with 10337 additions and 573 deletions
152
db/dbinfo/publicreport.notify_email_nuisance.bob.go
Normal file
152
db/dbinfo/publicreport.notify_email_nuisance.bob.go
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
// Code generated by BobGen psql v0.42.5. 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 PublicreportNotifyEmailNuisances = Table[
|
||||
publicreportNotifyEmailNuisanceColumns,
|
||||
publicreportNotifyEmailNuisanceIndexes,
|
||||
publicreportNotifyEmailNuisanceForeignKeys,
|
||||
publicreportNotifyEmailNuisanceUniques,
|
||||
publicreportNotifyEmailNuisanceChecks,
|
||||
]{
|
||||
Schema: "publicreport",
|
||||
Name: "notify_email_nuisance",
|
||||
Columns: publicreportNotifyEmailNuisanceColumns{
|
||||
Created: column{
|
||||
Name: "created",
|
||||
DBType: "timestamp without time zone",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Deleted: column{
|
||||
Name: "deleted",
|
||||
DBType: "timestamp without time zone",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
NuisanceID: column{
|
||||
Name: "nuisance_id",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
EmailAddress: column{
|
||||
Name: "email_address",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: publicreportNotifyEmailNuisanceIndexes{
|
||||
NotifyEmailNuisancePkey: index{
|
||||
Type: "btree",
|
||||
Name: "notify_email_nuisance_pkey",
|
||||
Columns: []indexColumn{
|
||||
{
|
||||
Name: "nuisance_id",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
{
|
||||
Name: "email_address",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
},
|
||||
Unique: true,
|
||||
Comment: "",
|
||||
NullsFirst: []bool{false, false},
|
||||
NullsDistinct: false,
|
||||
Where: "",
|
||||
Include: []string{},
|
||||
},
|
||||
},
|
||||
PrimaryKey: &constraint{
|
||||
Name: "notify_email_nuisance_pkey",
|
||||
Columns: []string{"nuisance_id", "email_address"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignKeys: publicreportNotifyEmailNuisanceForeignKeys{
|
||||
PublicreportNotifyEmailNuisanceNotifyEmailNuisanceEmailAddressFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "publicreport.notify_email_nuisance.notify_email_nuisance_email_address_fkey",
|
||||
Columns: []string{"email_address"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "comms.email_contact",
|
||||
ForeignColumns: []string{"address"},
|
||||
},
|
||||
PublicreportNotifyEmailNuisanceNotifyEmailNuisanceNuisanceIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "publicreport.notify_email_nuisance.notify_email_nuisance_nuisance_id_fkey",
|
||||
Columns: []string{"nuisance_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "publicreport.nuisance",
|
||||
ForeignColumns: []string{"id"},
|
||||
},
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type publicreportNotifyEmailNuisanceColumns struct {
|
||||
Created column
|
||||
Deleted column
|
||||
NuisanceID column
|
||||
EmailAddress column
|
||||
}
|
||||
|
||||
func (c publicreportNotifyEmailNuisanceColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.Created, c.Deleted, c.NuisanceID, c.EmailAddress,
|
||||
}
|
||||
}
|
||||
|
||||
type publicreportNotifyEmailNuisanceIndexes struct {
|
||||
NotifyEmailNuisancePkey index
|
||||
}
|
||||
|
||||
func (i publicreportNotifyEmailNuisanceIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.NotifyEmailNuisancePkey,
|
||||
}
|
||||
}
|
||||
|
||||
type publicreportNotifyEmailNuisanceForeignKeys struct {
|
||||
PublicreportNotifyEmailNuisanceNotifyEmailNuisanceEmailAddressFkey foreignKey
|
||||
PublicreportNotifyEmailNuisanceNotifyEmailNuisanceNuisanceIDFkey foreignKey
|
||||
}
|
||||
|
||||
func (f publicreportNotifyEmailNuisanceForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{
|
||||
f.PublicreportNotifyEmailNuisanceNotifyEmailNuisanceEmailAddressFkey, f.PublicreportNotifyEmailNuisanceNotifyEmailNuisanceNuisanceIDFkey,
|
||||
}
|
||||
}
|
||||
|
||||
type publicreportNotifyEmailNuisanceUniques struct{}
|
||||
|
||||
func (u publicreportNotifyEmailNuisanceUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type publicreportNotifyEmailNuisanceChecks struct{}
|
||||
|
||||
func (c publicreportNotifyEmailNuisanceChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue