Save information about the organization and user from ArcGIS
This commit is contained in:
parent
07d3b3ea76
commit
a08cd87813
20 changed files with 786 additions and 93 deletions
|
|
@ -69,6 +69,24 @@ var OauthTokens = Table[
|
|||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
ArcgisID: column{
|
||||
Name: "arcgis_id",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
ArcgisLicenseTypeID: column{
|
||||
Name: "arcgis_license_type_id",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: oauthTokenIndexes{
|
||||
OauthTokenPkey: index{
|
||||
|
|
@ -110,17 +128,19 @@ var OauthTokens = Table[
|
|||
}
|
||||
|
||||
type oauthTokenColumns struct {
|
||||
ID column
|
||||
AccessToken column
|
||||
Expires column
|
||||
RefreshToken column
|
||||
Username column
|
||||
UserID column
|
||||
ID column
|
||||
AccessToken column
|
||||
Expires column
|
||||
RefreshToken column
|
||||
Username column
|
||||
UserID column
|
||||
ArcgisID column
|
||||
ArcgisLicenseTypeID column
|
||||
}
|
||||
|
||||
func (c oauthTokenColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.ID, c.AccessToken, c.Expires, c.RefreshToken, c.Username, c.UserID,
|
||||
c.ID, c.AccessToken, c.Expires, c.RefreshToken, c.Username, c.UserID, c.ArcgisID, c.ArcgisLicenseTypeID,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,24 @@ var Organizations = Table[
|
|||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
ArcgisID: column{
|
||||
Name: "arcgis_id",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
ArcgisName: column{
|
||||
Name: "arcgis_name",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: organizationIndexes{
|
||||
OrganizationPkey: index{
|
||||
|
|
@ -63,13 +81,15 @@ var Organizations = Table[
|
|||
}
|
||||
|
||||
type organizationColumns struct {
|
||||
ID column
|
||||
Name column
|
||||
ID column
|
||||
Name column
|
||||
ArcgisID column
|
||||
ArcgisName column
|
||||
}
|
||||
|
||||
func (c organizationColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.ID, c.Name,
|
||||
c.ID, c.Name, c.ArcgisID, c.ArcgisName,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue