diff --git a/server/db/models/email_templates.go b/server/db/models/email_templates.go index 6608a17..f8be292 100644 --- a/server/db/models/email_templates.go +++ b/server/db/models/email_templates.go @@ -12,9 +12,9 @@ type EmailTemplate struct { Key string `json:"_key,omitempty" bson:"_key,omitempty" cql:"_key,omitempty" dynamo:"key,omitempty"` // for arangodb ID string `gorm:"primaryKey;type:char(36)" json:"_id" bson:"_id" cql:"id" dynamo:"id,hash"` EventName string `gorm:"unique" json:"event_name" bson:"event_name" cql:"event_name" dynamo:"event_name" index:"event_name,hash"` - Subject string `gorm:"type:text" json:"subject" bson:"subject" cql:"subject" dynamo:"subject"` - Template string `gorm:"type:text" json:"template" bson:"template" cql:"template" dynamo:"template"` - Design string `gorm:"type:text" json:"design" bson:"design" cql:"design" dynamo:"design"` + Subject string `json:"subject" bson:"subject" cql:"subject" dynamo:"subject"` + Template string `json:"template" bson:"template" cql:"template" dynamo:"template"` + Design string `json:"design" bson:"design" cql:"design" dynamo:"design"` CreatedAt int64 `json:"created_at" bson:"created_at" cql:"created_at" dynamo:"created_at"` UpdatedAt int64 `json:"updated_at" bson:"updated_at" cql:"updated_at" dynamo:"updated_at"` } diff --git a/server/db/models/env.go b/server/db/models/env.go index 1aea291..633e1af 100644 --- a/server/db/models/env.go +++ b/server/db/models/env.go @@ -6,8 +6,8 @@ package models type Env struct { Key string `json:"_key,omitempty" bson:"_key,omitempty" cql:"_key,omitempty" dynamo:"key,omitempty"` // for arangodb ID string `gorm:"primaryKey;type:char(36)" json:"_id" bson:"_id" cql:"id" dynamo:"id,hash"` - EnvData string `gorm:"type:text" json:"env" bson:"env" cql:"env" dynamo:"env"` - Hash string `gorm:"type:text" json:"hash" bson:"hash" cql:"hash" dynamo:"hash"` + EnvData string `json:"env" bson:"env" cql:"env" dynamo:"env"` + Hash string `json:"hash" bson:"hash" cql:"hash" dynamo:"hash"` UpdatedAt int64 `json:"updated_at" bson:"updated_at" cql:"updated_at" dynamo:"updated_at"` CreatedAt int64 `json:"created_at" bson:"created_at" cql:"created_at" dynamo:"created_at"` } diff --git a/server/db/models/user.go b/server/db/models/user.go index 3b533a3..ba77677 100644 --- a/server/db/models/user.go +++ b/server/db/models/user.go @@ -17,7 +17,7 @@ type User struct { Email string `gorm:"unique" json:"email" bson:"email" cql:"email" dynamo:"email" index:"email,hash"` EmailVerifiedAt *int64 `json:"email_verified_at" bson:"email_verified_at" cql:"email_verified_at" dynamo:"email_verified_at"` - Password *string `gorm:"type:text" json:"password" bson:"password" cql:"password" dynamo:"password"` + Password *string `json:"password" bson:"password" cql:"password" dynamo:"password"` SignupMethods string `json:"signup_methods" bson:"signup_methods" cql:"signup_methods" dynamo:"signup_methods"` GivenName *string `json:"given_name" bson:"given_name" cql:"given_name" dynamo:"given_name"` FamilyName *string `json:"family_name" bson:"family_name" cql:"family_name" dynamo:"family_name"` @@ -27,7 +27,7 @@ type User struct { Birthdate *string `json:"birthdate" bson:"birthdate" cql:"birthdate" dynamo:"birthdate"` PhoneNumber *string `gorm:"unique" json:"phone_number" bson:"phone_number" cql:"phone_number" dynamo:"phone_number"` PhoneNumberVerifiedAt *int64 `json:"phone_number_verified_at" bson:"phone_number_verified_at" cql:"phone_number_verified_at" dynamo:"phone_number_verified_at"` - Picture *string `gorm:"type:text" json:"picture" bson:"picture" cql:"picture" dynamo:"picture"` + Picture *string `json:"picture" bson:"picture" cql:"picture" dynamo:"picture"` Roles string `json:"roles" bson:"roles" cql:"roles" dynamo:"roles"` RevokedTimestamp *int64 `json:"revoked_timestamp" bson:"revoked_timestamp" cql:"revoked_timestamp" dynamo:"revoked_timestamp"` IsMultiFactorAuthEnabled *bool `json:"is_multi_factor_auth_enabled" bson:"is_multi_factor_auth_enabled" cql:"is_multi_factor_auth_enabled" dynamo:"is_multi_factor_auth_enabled"` diff --git a/server/db/models/verification_requests.go b/server/db/models/verification_requests.go index 5d4179d..6154523 100644 --- a/server/db/models/verification_requests.go +++ b/server/db/models/verification_requests.go @@ -13,12 +13,12 @@ import ( type VerificationRequest struct { Key string `json:"_key,omitempty" bson:"_key" cql:"_key,omitempty" dynamo:"key,omitempty"` // for arangodb ID string `gorm:"primaryKey;type:char(36)" json:"_id" bson:"_id" cql:"id" dynamo:"id,hash"` - Token string `gorm:"type:text" json:"token" bson:"token" cql:"jwt_token" dynamo:"token" index:"token,hash"` + Token string `json:"token" bson:"token" cql:"jwt_token" dynamo:"token" index:"token,hash"` Identifier string `gorm:"uniqueIndex:idx_email_identifier;type:varchar(64)" json:"identifier" bson:"identifier" cql:"identifier" dynamo:"identifier"` ExpiresAt int64 `json:"expires_at" bson:"expires_at" cql:"expires_at" dynamo:"expires_at"` Email string `gorm:"uniqueIndex:idx_email_identifier;type:varchar(256)" json:"email" bson:"email" cql:"email" dynamo:"email"` - Nonce string `gorm:"type:text" json:"nonce" bson:"nonce" cql:"nonce" dynamo:"nonce"` - RedirectURI string `gorm:"type:text" json:"redirect_uri" bson:"redirect_uri" cql:"redirect_uri" dynamo:"redirect_uri"` + Nonce string `json:"nonce" bson:"nonce" cql:"nonce" dynamo:"nonce"` + RedirectURI string `json:"redirect_uri" bson:"redirect_uri" cql:"redirect_uri" dynamo:"redirect_uri"` CreatedAt int64 `json:"created_at" bson:"created_at" cql:"created_at" dynamo:"created_at"` UpdatedAt int64 `json:"updated_at" bson:"updated_at" cql:"updated_at" dynamo:"updated_at"` } diff --git a/server/db/models/webhook.go b/server/db/models/webhook.go index 5f9f8f7..0b64133 100644 --- a/server/db/models/webhook.go +++ b/server/db/models/webhook.go @@ -15,8 +15,8 @@ type Webhook struct { Key string `json:"_key,omitempty" bson:"_key,omitempty" cql:"_key,omitempty" dynamo:"key,omitempty"` // for arangodb ID string `gorm:"primaryKey;type:char(36)" json:"_id" bson:"_id" cql:"id" dynamo:"id,hash"` EventName string `gorm:"unique" json:"event_name" bson:"event_name" cql:"event_name" dynamo:"event_name" index:"event_name,hash"` - EndPoint string `gorm:"type:text" json:"endpoint" bson:"endpoint" cql:"endpoint" dynamo:"endpoint"` - Headers string `gorm:"type:text" json:"headers" bson:"headers" cql:"headers" dynamo:"headers"` + EndPoint string `json:"endpoint" bson:"endpoint" cql:"endpoint" dynamo:"endpoint"` + Headers string `json:"headers" bson:"headers" cql:"headers" dynamo:"headers"` Enabled bool `json:"enabled" bson:"enabled" cql:"enabled" dynamo:"enabled"` CreatedAt int64 `json:"created_at" bson:"created_at" cql:"created_at" dynamo:"created_at"` UpdatedAt int64 `json:"updated_at" bson:"updated_at" cql:"updated_at" dynamo:"updated_at"` diff --git a/server/db/models/webhook_log.go b/server/db/models/webhook_log.go index 6dda00f..0648487 100644 --- a/server/db/models/webhook_log.go +++ b/server/db/models/webhook_log.go @@ -14,8 +14,8 @@ type WebhookLog struct { Key string `json:"_key,omitempty" bson:"_key,omitempty" cql:"_key,omitempty" dynamo:"key,omitempty"` // for arangodb ID string `gorm:"primaryKey;type:char(36)" json:"_id" bson:"_id" cql:"id" dynamo:"id,hash"` HttpStatus int64 `json:"http_status" bson:"http_status" cql:"http_status" dynamo:"http_status"` - Response string `gorm:"type:text" json:"response" bson:"response" cql:"response" dynamo:"response"` - Request string `gorm:"type:text" json:"request" bson:"request" cql:"request" dynamo:"request"` + Response string `json:"response" bson:"response" cql:"response" dynamo:"response"` + Request string `json:"request" bson:"request" cql:"request" dynamo:"request"` WebhookID string `gorm:"type:char(36)" json:"webhook_id" bson:"webhook_id" cql:"webhook_id" dynamo:"webhook_id" index:"webhook_id,hash"` CreatedAt int64 `json:"created_at" bson:"created_at" cql:"created_at" dynamo:"created_at"` UpdatedAt int64 `json:"updated_at" bson:"updated_at" cql:"updated_at" dynamo:"updated_at"`