authorizer/server/db/models/model.go

34 lines
1.1 KiB
Go
Raw Permalink Normal View History

2022-01-21 06:48:07 +00:00
package models
// CollectionList / Tables available for authorizer in the database
2022-01-21 06:48:07 +00:00
type CollectionList struct {
User string
VerificationRequest string
Session string
Env string
Webhook string
WebhookLog string
EmailTemplate string
OTP string
2023-06-08 08:52:39 +00:00
SMSVerificationRequest string
Authenticators string
2022-01-21 06:48:07 +00:00
}
var (
// Prefix for table name / collection names
Prefix = "authorizer_"
// Collections / Tables available for authorizer in the database (used for dbs other than gorm)
Collections = CollectionList{
User: Prefix + "users",
VerificationRequest: Prefix + "verification_requests",
Session: Prefix + "sessions",
Env: Prefix + "env",
Webhook: Prefix + "webhooks",
WebhookLog: Prefix + "webhook_logs",
EmailTemplate: Prefix + "email_templates",
OTP: Prefix + "otps",
SMSVerificationRequest: Prefix + "sms_verification_requests",
Authenticators: Prefix + "authenticators",
2022-01-21 06:48:07 +00:00
}
)