Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/gitpod-db/go/identity.go
2497 views
1
// Copyright (c) 2023 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
package db
6
7
import "github.com/google/uuid"
8
9
type Identity struct {
10
AuthProviderID string `gorm:"primary_key;column:authProviderId;type:char;size:255;not null;"`
11
AuthID string `gorm:"primary_key;column:authId;type:char;size:255;not null;"`
12
13
AuthName string `gorm:"column:authName;type:char;size:255;not null;"`
14
15
UserID uuid.UUID `gorm:"column:userId;type:char;size:36;"`
16
PrimaryEmail string `gorm:"column:primaryEmail;type:char;size:255;not null;default:'';"`
17
18
Deleted bool `gorm:"column:deleted;type:tinyint;default:0;"`
19
Readonly bool `gorm:"column:readonly;type:tinyint;default:0;"`
20
}
21
22
func (i *Identity) TableName() string {
23
return "d_b_identity"
24
}
25
26