models

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Call

type Call struct {
	ID      string      `json:"_id" bson:"_id"`
	Details CallDetails `json:"call" bson:"call"`
	Version int32       `json:"__v" bson:"__v"`
}

Call holds the structure for the call collection in mongo

type CallDetails

type CallDetails struct {
	ShortDescription        string        `json:"shortDescription" bson:"shortDescription"`
	Classifier              []interface{} `json:"classifier" bson:"classifier"`
	AssignedOfficers        []interface{} `json:"assignedOfficers" bson:"assignedOfficers"`
	AssignedFireEms         []interface{} `json:"assignedFireEms" bson:"assignedFireEms"`
	CallNotes               []interface{} `json:"callNotes" bson:"callNotes"`
	CommunityID             string        `json:"communityID" bson:"communityID"`
	CreatedByUsername       string        `json:"createdByUsername" bson:"createdByUsername"`
	CreatedByID             string        `json:"createdByID" bson:"createdByID"`
	ClearingOfficerUsername string        `json:"clearingOfficerUsername" bson:"clearingOfficerUsername"`
	ClearingOfficerID       string        `json:"clearingOfficerID" bson:"clearingOfficerID"`
	Status                  bool          `json:"status" bson:"status"`
	CreatedAt               interface{}   `json:"createdAt" bson:"createdAt"`
	CreatedAtReadable       string        `json:"createdAtReadable" bson:"createdAtReadable"`
	UpdatedAt               interface{}   `json:"updatedAt" bson:"updatedAt"`
}

CallDetails holds the structure for the inner user structure as defined in the call collection in mongo

type Civilian

type Civilian struct {
	ID      string          `json:"_id" bson:"_id"`
	Details CivilianDetails `json:"civilian" bson:"civilian"`
	Version int32           `json:"__v" bson:"__v"`
}

Civilian holds the structure for the civilian collection in mongo

type CivilianDetails

type CivilianDetails struct {
	Email                string        `json:"email" bson:"email"`
	FirstName            string        `json:"firstName" bson:"firstName"`
	LastName             string        `json:"lastName" bson:"lastName"`
	LicenseStatus        string        `json:"licenseStatus" bson:"licenseStatus"`
	TicketCount          string        `json:"ticketCount" bson:"ticketCount"` // TODO may need to change the database definition
	Birthday             string        `json:"birthday" bson:"birthday"`
	Warrants             []interface{} `json:"warrants" bson:"warrants"` // TODO replace with a concrete type
	Gender               string        `json:"Gender" bson:"gender"`
	Address              string        `json:"address" bson:"address"`
	Race                 string        `json:"race" bson:"race"`
	HairColor            string        `json:"hairColor" bson:"hairColor"`
	Weight               string        `json:"weight" bson:"weight"` // TODO may need to change the database definition
	WeightClassification string        `json:"weightClassification" bson:"weightClassification"`
	Height               string        `json:"height" bson:"height"` // TODO may need to change the database definition
	HeightClassification string        `json:"heightClassification" bson:"heightClassification"`
	EyeColor             string        `json:"eyeColor" bson:"eyeColor"`
	OrganDonor           bool          `json:"organDonor" bson:"organDonor"`
	Veteran              bool          `json:"veteran" bson:"veteran"`
	Image                string        `json:"image" bson:"image"`
	Occupation           string        `json:"occupation" bson:"occupation"`
	FirearmLicense       string        `json:"firearmLicense" bson:"firearmLicense"`
	ActiveCommunityID    string        `json:"activeCommunityID" bson:"activeCommunityID"`
	UserID               string        `json:"userID" bson:"userID"`
	CreatedAt            interface{}   `json:"createdAt" bson:"createdAt"`
	UpdatedAt            interface{}   `json:"updatedAt" bson:"updatedAt"`
}

CivilianDetails holds the structure for the inner user structure as defined in the civilian collection in mongo

type Community

type Community struct {
	ID      string           `json:"_id" bson:"_id"`
	Details CommunityDetails `json:"community" bson:"community"`
	Version int32            `json:"__v" bson:"__v"`
}

Community holds the structure for the community collection in mongo

type CommunityDetails

type CommunityDetails struct {
	Name            string                 `json:"name"`
	OwnerID         string                 `json:"ownerID"`
	Code            string                 `json:"code"`
	ActivePanics    map[string]interface{} `json:"activePanics"`
	ActiveSignal100 bool                   `json:"activeSignal100"`
	CreatedAt       primitive.DateTime     `json:"createdAt"`
	UpdatedAt       primitive.DateTime     `json:"updatedAt"`
}

CommunityDetails holds the structure for the inner community collection in mongo

type Ems

type Ems struct {
	ID      string     `json:"_id" bson:"_id"`
	Details EmsDetails `json:"ems" bson:"ems"`
	Version int32      `json:"__v" bson:"__v"`
}

Ems holds the structure for the ems collection in mongo

type EmsDetails

type EmsDetails struct {
	Email             string      `json:"email" bson:"email"`
	FirstName         string      `json:"firstName" bson:"firstName"`
	LastName          string      `json:"lastName" bson:"lastName"`
	Department        string      `json:"department" bson:"department"`
	AssignmentArea    string      `json:"assignmentArea" bson:"assignmentArea"`
	Station           string      `json:"station" bson:"station"`
	CallSign          string      `json:"callSign" bson:"callSign"`
	ActiveCommunityID string      `json:"activeCommunityID" bson:"activeCommunityID"`
	UserID            string      `json:"userID" bson:"userID"`
	CreatedAt         interface{} `json:"createdAt" bson:"createdAt"`
	UpdatedAt         interface{} `json:"updatedAt" bson:"updatedAt"`
}

EmsDetails holds the structure for the inner user structure as defined in the ems collection in mongo

type EmsVehicle

type EmsVehicle struct {
	ID      string            `json:"_id" bson:"_id"`
	Details EmsVehicleDetails `json:"emsVehicle" bson:"emsVehicle"`
	Version int32             `json:"__v" bson:"__v"`
}

EmsVehicle holds the structure for the emsVehicle collection in mongo

type EmsVehicleDetails

type EmsVehicleDetails struct {
	Email               string      `json:"email" bson:"email"`
	Plate               string      `json:"plate" bson:"plate"`
	Model               string      `json:"model" bson:"model"`
	EngineNumber        string      `json:"engineNumber" bson:"engineNumber"`
	Color               string      `json:"color" bson:"color"`
	DispatchStatus      string      `json:"dispatchStatus" bson:"dispatchStatus"`
	DispatchStatusSetBy string      `json:"dispatchStatusSetBy" bson:"dispatchStatusSetBy"`
	DispatchOnDuty      string      `json:"dispatchOnDuty" bson:"dispatchOnDuty"`
	RegisteredOwner     string      `json:"registeredOwner" bson:"registeredOwner"`
	ActiveCommunityID   string      `json:"activeCommunityID" bson:"activeCommunityID"`
	UserID              string      `json:"userID" bson:"userID"`
	CreatedAt           interface{} `json:"createdAt" bson:"createdAt"`
	UpdatedAt           interface{} `json:"updatedAt" bson:"updatedAt"`
}

EmsVehicleDetails holds the structure for the inner user structure as defined in the emsVehicle collection in mongo

type ErrorMessageResponse

type ErrorMessageResponse struct {
	Response MessageError
}

ErrorMessageResponse returns the error message response struct

type Firearm

type Firearm struct {
	ID      string         `json:"_id" bson:"_id"`
	Details FirearmDetails `json:"firearm" bson:"firearm"`
	Version int32          `json:"__v" bson:"__v"`
}

Firearm holds the structure for the firearm collection in mongo

type FirearmDetails

type FirearmDetails struct {
	SerialNumber      string      `json:"serialNumber" bson:"serialNumber"`
	WeaponType        string      `json:"weaponType" bson:"weaponType"`
	RegisteredOwner   string      `json:"registeredOwner" bson:"registeredOwner"`
	RegisteredOwnerID string      `json:"registeredOwnerID" bson:"registeredOwnerID"`
	IsStolen          string      `json:"isStolen" bson:"isStolen"`
	ActiveCommunityID string      `json:"activeCommunityID" bson:"activeCommunityID"`
	UserID            string      `json:"userID" bson:"userID"`
	CreatedAt         interface{} `json:"createdAt" bson:"createdAt"`
	UpdatedAt         interface{} `json:"updatedAt" bson:"updatedAt"`
}

FirearmDetails holds the structure for the inner user structure as defined in the firearm collection in mongo

type HealthCheckResponse

type HealthCheckResponse struct {
	Alive bool `json:"alive"`
}

HealthCheckResponse returns the health check response duh

type License added in v1.8.0

type License struct {
	ID      string         `json:"_id" bson:"_id"`
	Details LicenseDetails `json:"license" bson:"license"`
	Version int32          `json:"__v" bson:"__v"`
}

License holds the structure for the license collection in mongo

type LicenseDetails added in v1.8.0

type LicenseDetails struct {
	LicenseType       string      `json:"licenseType" bson:"licenseType"`
	Status            string      `json:"status" bson:"status"`
	ExpirationDate    string      `json:"expirationDate" bson:"expirationDate"`
	AdditionalNotes   string      `json:"additionalNotes" bson:"additionalNotes"`
	OwnerID           string      `json:"ownerID" bson:"ownerID"`
	OwnerName         string      `json:"ownerName" bson:"ownerName"`
	ActiveCommunityID string      `json:"activeCommunityID" bson:"activeCommunityID"`
	UserID            string      `json:"userID" bson:"userID"`
	CreatedAt         interface{} `json:"createdAt" bson:"createdAt"`
	UpdatedAt         interface{} `json:"updatedAt" bson:"updatedAt"`
}

LicenseDetails holds the structure for the inner user structure as defined in the license collection in mongo

type MessageError

type MessageError struct {
	Message string
	Error   string
}

MessageError contains the inner details for the error message response

type User

type User struct {
	ID      string      `json:"_id" bson:"_id"`
	Details UserDetails `json:"user" bson:"user"`
	Version int32       `json:"__v" bson:"__v"`
}

User holds the structure for the user collection in mongo

type UserDetails

type UserDetails struct {
	Address              string      `json:"address" bson:"address"`
	ActiveCommunity      string      `json:"activeCommunity" bson:"activeCommunity"`
	CallSign             string      `json:"callSign" bson:"callSign"`
	DispatchStatus       string      `json:"dispatchStatus" bson:"dispatchStatus"`
	DispatchStatusSetBy  string      `json:"dispatchStatusSetBy" bson:"dispatchStatusSetBy"`
	Email                string      `json:"email" bson:"email"`
	Name                 string      `json:"name" bson:"name"`
	Username             string      `json:"username" bson:"username"`
	Password             string      `json:"password" bson:"password"`
	ResetPasswordToken   string      `json:"resetPasswordToken" bson:"resetPasswordToken"`
	ResetPasswordExpires interface{} `json:"resetPasswordExpires" bson:"resetPasswordExpires"`
	CreatedAt            interface{} `json:"createdAt" bson:"createdAt"`
	UpdatedAt            interface{} `json:"updatedAt" bson:"updatedAt"`
}

UserDetails holds the structure for the inner user structure as defined in the user collection in mongo

type Vehicle

type Vehicle struct {
	ID      string         `json:"_id" bson:"_id"`
	Details VehicleDetails `json:"vehicle" bson:"vehicle"`
	Version int32          `json:"__v" bson:"__v"`
}

Vehicle holds the structure for the vehicle collection in mongo

type VehicleDetails

type VehicleDetails struct {
	Email             string      `json:"email" bson:"email"`
	Plate             string      `json:"plate" bson:"plate"`
	Vin               string      `json:"vin" bson:"vin"`
	Model             string      `json:"model" bson:"model"`
	Color             string      `json:"color" bson:"color"`
	ValidRegistration string      `json:"validRegistration" bson:"validRegistration"`
	ValidInsurance    string      `json:"validInsurance" bson:"validInsurance"`
	RegisteredOwner   string      `json:"registeredOwner" bson:"registeredOwner"`
	RegisteredOwnerID string      `json:"registeredOwnerID" bson:"registeredOwnerID"`
	IsStolen          string      `json:"isStolen" bson:"isStolen"`
	ActiveCommunityID string      `json:"activeCommunityID" bson:"activeCommunityID"`
	UserID            string      `json:"userID" bson:"userID"`
	CreatedAt         interface{} `json:"createdAt" bson:"createdAt"`
	UpdatedAt         interface{} `json:"updatedAt" bson:"updatedAt"`
}

VehicleDetails holds the structure for the inner user structure as defined in the vehicle collection in mongo

type Warrant added in v1.8.0

type Warrant struct {
	ID      string         `json:"_id" bson:"_id"`
	Details WarrantDetails `json:"warrant" bson:"warrant"`
	Version int32          `json:"__v" bson:"__v"`
}

Warrant holds the structure for the warrant collection in mongo

type WarrantDetails added in v1.8.0

type WarrantDetails struct {
	Status             bool        `json:"status" bson:"status"`
	AccusedID          string      `json:"accusedID" bson:"accusedID"`
	AccusedFirstName   string      `json:"accusedFirstName" bson:"accusedFirstName"`
	AccusedLastName    string      `json:"accusedLastName" bson:"accusedLastName"`
	Reasons            []string    `json:"reasons" bson:"reasons"`
	ReportingOfficerID string      `json:"reportingOfficerID" bson:"reportingOfficerID"`
	ClearingOfficerID  string      `json:"clearingOfficerID" bson:"clearingOfficerID"`
	CreatedAt          interface{} `json:"createdAt" bson:"createdAt"`
	UpdatedAt          interface{} `json:"updatedAt" bson:"updatedAt"`
}

WarrantDetails holds the structure for the inner user structure as defined in the warrant collection in mongo

Jump to

Keyboard shortcuts

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