idp_remote_ids.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // Copyright 2019 Yunion
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. package models
  15. import "yunion.io/x/onecloud/pkg/cloudcommon/db"
  16. // +onecloud:swagger-gen-ignore
  17. type SIdpRemoteIdsManager struct {
  18. db.SModelBaseManager
  19. }
  20. var (
  21. IdpRemoteIdsManager *SIdpRemoteIdsManager
  22. )
  23. func init() {
  24. IdpRemoteIdsManager = &SIdpRemoteIdsManager{
  25. SModelBaseManager: db.NewModelBaseManager(
  26. SIdpRemoteIds{},
  27. "idp_remote_ids",
  28. "idp_remote_ids",
  29. "idp_remote_ids",
  30. ),
  31. }
  32. IdpRemoteIdsManager.SetVirtualObject(IdpRemoteIdsManager)
  33. }
  34. /*
  35. desc idp_remote_ids;
  36. +-----------+--------------+------+-----+---------+-------+
  37. | Field | Type | Null | Key | Default | Extra |
  38. +-----------+--------------+------+-----+---------+-------+
  39. | idp_id | varchar(64) | YES | MUL | NULL | |
  40. | remote_id | varchar(255) | NO | PRI | NULL | |
  41. +-----------+--------------+------+-----+---------+-------+
  42. */
  43. type SIdpRemoteIds struct {
  44. db.SModelBase
  45. IdpId string `width:"64" charset:"ascii" nullable:"true"`
  46. RemoteId string `width:"255" charset:"ascii" nullable:"false" primary:"true"`
  47. }