19 lines
552 B
Go
19 lines
552 B
Go
// 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"`
|
|
}
|