feat(shared): add slug rules and shared document models

This commit is contained in:
2026-07-24 13:38:52 +01:00
parent 4da2e546b7
commit ea460d7408
4 changed files with 150 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
// Package models holds the MongoDB documents written by more than one Vantage
// service. Documents only the control plane touches stay in
// server/internal/models.
package models
import (
"time"
"go.mongodb.org/mongo-driver/v2/bson"
)
type Org struct {
ID bson.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"`
OrgID string `bson:"org_id" json:"org_id"`
Name string `bson:"name" json:"name"`
Slug string `bson:"slug" json:"slug"`
CreatedAt time.Time `bson:"created_at" json:"created_at"`
}