2022-01-21 06:48:07 +00:00
|
|
|
package models
|
|
|
|
|
|
|
|
// Collections / Tables available for authorizer in the database
|
|
|
|
type CollectionList struct {
|
|
|
|
User string
|
|
|
|
VerificationRequest string
|
|
|
|
Session string
|
|
|
|
Env string
|
2022-07-08 13:39:23 +00:00
|
|
|
Webhook string
|
|
|
|
WebhookLog string
|
2022-07-15 04:42:24 +00:00
|
|
|
EmailTemplate string
|
2022-07-23 10:25:06 +00:00
|
|
|
OTP string
|
2022-01-21 06:48:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2022-11-27 15:10:45 +00:00
|
|
|
// DB/Namespace
|
|
|
|
DBNamespace = "authorizer"
|
|
|
|
// Identifier field used for surreal db
|
|
|
|
SurrealDbIdentifier = "identifier"
|
2022-01-21 06:48:07 +00:00
|
|
|
// 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",
|
2022-07-23 10:14:56 +00:00
|
|
|
Webhook: Prefix + "webhooks",
|
|
|
|
WebhookLog: Prefix + "webhook_logs",
|
|
|
|
EmailTemplate: Prefix + "email_templates",
|
2022-07-23 10:25:06 +00:00
|
|
|
OTP: Prefix + "otps",
|
2022-01-21 06:48:07 +00:00
|
|
|
}
|
|
|
|
)
|