allowlist.go 231 B

123456789101112
  1. package models
  2. import (
  3. "gorm.io/gorm"
  4. )
  5. // Allowlist is a simple list with all the users emails allowed to create new projects
  6. type Allowlist struct {
  7. gorm.Model
  8. UserEmail string `json:"user_email" gorm:"unique;not null"`
  9. }