Add statistics on the sync and save org ID with fieldseeker tables
We need the org ID so that we can avoid bleedover between different organizations.
This commit is contained in:
parent
bf6e40d877
commit
b0432f3243
178 changed files with 9075 additions and 6223 deletions
157
dbinfo/fieldseeker_sync.bob.go
Normal file
157
dbinfo/fieldseeker_sync.bob.go
Normal file
|
|
@ -0,0 +1,157 @@
|
|||
// Code generated by BobGen psql v0.41.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 FieldseekerSyncs = Table[
|
||||
fieldseekerSyncColumns,
|
||||
fieldseekerSyncIndexes,
|
||||
fieldseekerSyncForeignKeys,
|
||||
fieldseekerSyncUniques,
|
||||
fieldseekerSyncChecks,
|
||||
]{
|
||||
Schema: "",
|
||||
Name: "fieldseeker_sync",
|
||||
Columns: fieldseekerSyncColumns{
|
||||
ID: column{
|
||||
Name: "id",
|
||||
DBType: "integer",
|
||||
Default: "nextval('fieldseeker_sync_id_seq'::regclass)",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Created: column{
|
||||
Name: "created",
|
||||
DBType: "timestamp without time zone",
|
||||
Default: "CURRENT_TIMESTAMP",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
RecordsCreated: column{
|
||||
Name: "records_created",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
RecordsUpdated: column{
|
||||
Name: "records_updated",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
RecordsUnchanged: column{
|
||||
Name: "records_unchanged",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
OrganizationID: column{
|
||||
Name: "organization_id",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: fieldseekerSyncIndexes{
|
||||
FieldseekerSyncPkey: index{
|
||||
Type: "btree",
|
||||
Name: "fieldseeker_sync_pkey",
|
||||
Columns: []indexColumn{
|
||||
{
|
||||
Name: "id",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
},
|
||||
Unique: true,
|
||||
Comment: "",
|
||||
NullsFirst: []bool{false},
|
||||
NullsDistinct: false,
|
||||
Where: "",
|
||||
Include: []string{},
|
||||
},
|
||||
},
|
||||
PrimaryKey: &constraint{
|
||||
Name: "fieldseeker_sync_pkey",
|
||||
Columns: []string{"id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignKeys: fieldseekerSyncForeignKeys{
|
||||
FieldseekerSyncFieldseekerSyncOrganizationIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "fieldseeker_sync.fieldseeker_sync_organization_id_fkey",
|
||||
Columns: []string{"organization_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "organization",
|
||||
ForeignColumns: []string{"id"},
|
||||
},
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type fieldseekerSyncColumns struct {
|
||||
ID column
|
||||
Created column
|
||||
RecordsCreated column
|
||||
RecordsUpdated column
|
||||
RecordsUnchanged column
|
||||
OrganizationID column
|
||||
}
|
||||
|
||||
func (c fieldseekerSyncColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.ID, c.Created, c.RecordsCreated, c.RecordsUpdated, c.RecordsUnchanged, c.OrganizationID,
|
||||
}
|
||||
}
|
||||
|
||||
type fieldseekerSyncIndexes struct {
|
||||
FieldseekerSyncPkey index
|
||||
}
|
||||
|
||||
func (i fieldseekerSyncIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.FieldseekerSyncPkey,
|
||||
}
|
||||
}
|
||||
|
||||
type fieldseekerSyncForeignKeys struct {
|
||||
FieldseekerSyncFieldseekerSyncOrganizationIDFkey foreignKey
|
||||
}
|
||||
|
||||
func (f fieldseekerSyncForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{
|
||||
f.FieldseekerSyncFieldseekerSyncOrganizationIDFkey,
|
||||
}
|
||||
}
|
||||
|
||||
type fieldseekerSyncUniques struct{}
|
||||
|
||||
func (u fieldseekerSyncUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type fieldseekerSyncChecks struct{}
|
||||
|
||||
func (c fieldseekerSyncChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue