models

package
v0.0.0-...-303e514 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIRoute

type APIRoute struct {
	Path      string `json:"path"`
	Method    string `json:"method"`   // e.g., "GET", "POST"
	Response  string `json:"response"` // The response data
	ProjectID string `json:"projectID"`
}

type Project

type Project struct {
	ID          primitive.ObjectID `bson:"_id,omitempty"`
	Name        string             `bson:"name"`
	Description string             `bson:"description"`
	OwnerID     string             `bson:"ownerID"` // The ID of the user who created the project
	CreatedAt   int64              `bson:"createdAt"`
}

type User

type User struct {
	ID        primitive.ObjectID `bson:"_id,omitempty"`
	Email     string             `bson:"email"`
	Name      string             `bson:"name"`
	Picture   string             `bson:"picture"`
	CreatedAt time.Time          `bson:"created_at"`
	UpdatedAt time.Time          `bson:"updated_at"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL