feat(shared): add slug rules and shared document models
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user