Files
authorizer/server/db/models/model.go

30 lines
909 B
Go
Raw Normal View History

2022-01-21 12:18:07 +05:30
package models
// Collections / Tables available for authorizer in the database
type CollectionList struct {
User string
VerificationRequest string
Session string
Env string
Webhook string
WebhookLog string
2022-07-15 10:12:24 +05:30
EmailTemplate string
OTP string
2022-01-21 12:18:07 +05:30
}
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",
2022-07-23 15:44:56 +05:30
Webhook: Prefix + "webhooks",
WebhookLog: Prefix + "webhook_logs",
EmailTemplate: Prefix + "email_templates",
OTP: Prefix + "otps",
2022-01-21 12:18:07 +05:30
}
)