package models

import (
	"time"

	"go.mongodb.org/mongo-driver/v2/bson"
)

// PendingSignup lives here rather than in the shared module because only
// sitesvc writes site_pending_signups. The control plane does not know the
// collection exists.
//
// Org and User used to be mirrored here by hand. They now come from
// github.com/mrhid6/vantage/shared/models, which is the only copy.
type PendingSignup struct {
	ID           bson.ObjectID `bson:"_id,omitempty"`
	PendingID    string        `bson:"pending_id"`
	InstanceName string        `bson:"instance_name"`
	Email        string        `bson:"email"`
	PasswordHash string        `bson:"password_hash"`
	TokenHash    string        `bson:"token_hash"`
	CreatedAt    time.Time     `bson:"created_at"`
	ExpiresAt    time.Time     `bson:"expires_at"`
}
