models

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 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 Akreditasi

type Akreditasi struct {
	ID            primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Standard      int                `bson:"standard" json:"standard"`       // Accreditation standard (1-9)
	Description   string             `bson:"description" json:"description"` // Description of the standard
	CreatedBy     string             `bson:"created_by" json:"created_by"`   // Who created it
	FileLink      string             `bson:"file_link" json:"file_link"`     // Link to uploaded PDF
	Status        string             `bson:"status" json:"status"`           // Status (penetapan, pelaksanaan, evaluasi, etc.)
	CreationDate  primitive.DateTime `bson:"creation_date" json:"creation_date"`
	LastUpdatedBy string             `bson:"last_updated_by" json:"last_updated_by"`
}

Akreditasi represents accreditation standards and file uploads

type PDFDocument

type PDFDocument struct {
	ID         primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	FileName   string             `json:"file_name"`
	FileID     string             `json:"file_id"`
	UploadedBy string             `json:"uploaded_by"`
	UploadedAt primitive.DateTime `json:"uploaded_at"`
}

PDFDocument struct to handle uploaded files metadata

type User

type User struct {
	ID       primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
	Username string             `bson:"username" json:"username"`
	Email    string             `bson:"email" json:"email"`
	Password string             `bson:"password" json:"password"`
	Role     string             `bson:"role" json:"role"` // Role: kaprodi, dosen, staff
}

User struct represents a user in the system

Jump to

Keyboard shortcuts

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