hrms

package
v0.0.0-...-9835584 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DEPARTMENT_COLLECTION_ATTENDANCE_CONF = "department-attendance-conf"
View Source
const DEPARTMENT_COLLECTION_DESIGNATIONS = "department-designations"
View Source
const EMPLOYEE_COLLECTION_ATTENDANCE = "employee-attendance"
View Source
const EMPLOYEE_COLLECTION_ATTENDANCE_CONF = "employee-attendance-conf"
View Source
const EMPLOYEE_COLLECTION_DAILY_ATN_OBJECT = "employee-daily-atn-object"
View Source
const EMPLOYEE_COLLECTION_DOCUMENTS = "employee-documents"
View Source
const EMPLOYEE_COLLECTION_LEAVES = "employee-leaves"
View Source
const EMPLOYEE_COLLECTION_LEAVE_STATUS = "employee-leave-status"
View Source
const EMPLOYEE_COLLECTION_PERSONAL = "employee-personal"
View Source
const EMPLOYEE_COLLECTION_PROFESSIONAL = "employee-professional"
View Source
const EMPLOYEE_COLLECTION_QUALIFICATION = "employee-qualification"
View Source
const EMPLOYEE_COLLECTION_SUMMARY = "employee-summary"
View Source
const ORG_COLLECTION_ATTENDANCE_CONF = "org-attendance-conf"
View Source
const ORG_COLLECTION_AUTH = "auth"
View Source
const ORG_COLLECTION_DEPARTMENTS = "org-departments"
View Source
const ORG_COLLECTION_DOCUMENTS = "org-documents"
View Source
const ORG_COLLECTION_EMPLOYEE_TYPE = "org-employee-types"
View Source
const ORG_COLLECTION_HOLIDAYS = "org-holidays"
View Source
const ORG_COLLECTION_LEAVES_CONF = "org-leaves-conf"
View Source
const ORG_COLLECTION_MARQUE = "org-marque"
View Source
const ORG_COLLECTION_ORGANIZATION = "organization"
View Source
const ORG_COLLECTION_PERMISSIONS = "org-permissions"
View Source
const ORG_COLLECTION_POST = "org-post"
View Source
const ORG_COLLECTION_ROLES = "org-roles"

Variables

This section is empty.

Functions

func GetDailyAttendanceObjectCollection

func GetDailyAttendanceObjectCollection(client *mongo.Client, domain string) *mongo.Collection

func GetDepAttendanceConfCollection

func GetDepAttendanceConfCollection(client *mongo.Client, domain string) *mongo.Collection

func GetDepDesignationCollection

func GetDepDesignationCollection(client *mongo.Client, domain string) *mongo.Collection

func GetDocumentCollection

func GetDocumentCollection(client *mongo.Client, domain string) *mongo.Collection

func GetEmpAttendanceCollection

func GetEmpAttendanceCollection(client *mongo.Client, domain string) *mongo.Collection

func GetEmpAttendanceConfCollection

func GetEmpAttendanceConfCollection(client *mongo.Client, domain string) *mongo.Collection

func GetEmpDocumentCollection

func GetEmpDocumentCollection(client *mongo.Client, domain string) *mongo.Collection

func GetEmpLeaveStatusCollection

func GetEmpLeaveStatusCollection(client *mongo.Client, domain string) *mongo.Collection

func GetEmpLeavesCollection

func GetEmpLeavesCollection(client *mongo.Client, domain string) *mongo.Collection

func GetEmpPersonalCollection

func GetEmpPersonalCollection(client *mongo.Client, domain string) *mongo.Collection

func GetEmpProfessionalCollection

func GetEmpProfessionalCollection(client *mongo.Client, domain string) *mongo.Collection

func GetEmpQualificationCollection

func GetEmpQualificationCollection(client *mongo.Client, domain string) *mongo.Collection

func GetEmpSummaryCollection

func GetEmpSummaryCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgAttendanceConfCollection

func GetOrgAttendanceConfCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgAuthCollection

func GetOrgAuthCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgCollection

func GetOrgCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgDepartmentCollection

func GetOrgDepartmentCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgDocumentCollection

func GetOrgDocumentCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgEmployeeTypeCollection

func GetOrgEmployeeTypeCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgHolidayCollection

func GetOrgHolidayCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgHolidaysCollection

func GetOrgHolidaysCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgLeaveConfCollection

func GetOrgLeaveConfCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgMarqueCollection

func GetOrgMarqueCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgPermissionsCollection

func GetOrgPermissionsCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgPostCollection

func GetOrgPostCollection(client *mongo.Client, domain string) *mongo.Collection

func GetOrgRolesCollection

func GetOrgRolesCollection(client *mongo.Client, domain string) *mongo.Collection

Types

type Address

type Address struct {
	AddressLine1       string  `bson:"address_line_1"`
	AddressLine2       string  `bson:"address_line_2"`
	State              string  `bson:"state"`
	City               string  `bson:"city"`
	Zipcode            string  `bson:"zipcode"`
	Lat                float64 `bson:"lat"`
	Lng                float64 `bson:"lng"`
	GoogleLocationCode string  `bson:"google_location_code"`
}

type DailyAttendanceObject

type DailyAttendanceObject struct {
	EID         string `bson:"eid"`
	IsProcessed bool   `bson:"is_processed"`
}

type DepAttendanceConf

type DepAttendanceConf struct {
	ID                      primitive.ObjectID `bson:"_id"`
	DepId                   string             `bson:"dep_id"`
	Department              string             `bson:"department"`
	CaptureCheckInLocation  bool               `bson:"capture_check_in_location"`
	EnforceLocationCheckIn  bool               `bson:"enforce_location_check_in"`
	EnforceLocationCheckOut bool               `bson:"enforce_location_check_out"`
	RequiredLat             float64            `bson:"required_lat"`
	RequiredLng             float64            `bson:"required_lng"`
	FlexiHoursEnabled       bool               `bson:"flexi_hours_enabled"`
	FlexiHourWindowInMin    int32              `bson:"flexi_hour_window_in_min"`
	OrgCheckInTime          string             `bson:"org_check_in_time"`
	OrgCheckOutTime         string             `bson:"org_check_out_time"`
	CheckinMarginInMin      int32              `bson:"check_in_margin_in_min"`
	WorkingDaysPerWeek      float32            `bson:"working_days_per_week"`
	WeeklyOffDays           []string           `bson:"weekly_off_days"`
	DailyWorkingHours       float32            `bson:"daily_working_hours"`
	CreatedAt               time.Time          `bson:"created_at"`
	UpdatedAt               time.Time          `bson:"updated_at"`
}

type Department

type Department struct {
	ID             primitive.ObjectID `bson:"_id"`
	OrgId          string             `bson:"org_id"`
	OrgName        string             `bson:"org_name"`
	Name           string             `bson:"name"`
	Alias          string             `bson:"alias"`
	AdminId        string             `bson:"admin_id"`
	AdminName      string             `bson:"admin_name"`
	TotalEmployees uint32             `bson:"total_employees"`
	EmployeeList   []EmployeeInfo     `bson:"employee_list"`
	Description    string             `bson:"description"`
	IsActive       bool               `bson:"is_active"`
	CreatedBy      string             `bson:"created_by"`
	CreatedAt      time.Time          `bson:"created_at"`
	UpdatedAt      time.Time          `bson:"updated_at"`
}

type Designation

type Designation struct {
	ID          primitive.ObjectID `bson:"_id"`
	DepId       string             `bson:"dep_id"`
	DepName     string             `bson:"dep_name"`
	Title       string             `bson:"title"`
	IsActive    bool               `bson:"is_active"`
	Description string             `bson:"description"`
	CreatedBy   string             `bson:"created_by"`
	CreatedAt   time.Time          `bson:"created_at"`
	UpdatedAt   time.Time          `bson:"updated_at"`
}

type EmpAttendanceConf

type EmpAttendanceConf struct {
	ID                      primitive.ObjectID `bson:"_id"`
	EID                     string             `bson:"eid"`
	Department              string             `bson:"department"`
	ApplyOrgDefaultRules    bool               `bson:"apply_org_default_rules"`
	CaptureCheckInLocation  bool               `bson:"capture_check_in_location"`
	EnforceLocationCheckIn  bool               `bson:"enforce_location_check_in"`
	EnforceLocationCheckOut bool               `bson:"enforce_location_check_out"`
	RequiredLat             float64            `bson:"required_lat"`
	RequiredLng             float64            `bson:"required_lng"`
	FlexiHoursEnabled       bool               `bson:"flexi_hours_enabled"`
	FlexiHourWindowInMin    int32              `bson:"flexi_hour_window_in_min"`
	OrgCheckInTime          string             `bson:"org_check_in_time"`
	OrgCheckOutTime         string             `bson:"org_check_out_time"`
	CheckinMarginInMin      int32              `bson:"check_in_margin_in_min"`
	WorkingDaysPerWeek      float32            `bson:"working_days_per_week"`
	WeeklyOffDays           []string           `bson:"weekly_off_days"`
	DailyWorkingHours       float32            `bson:"daily_working_hours"`
	CreatedAt               time.Time          `bson:"created_at"`
	UpdatedAt               time.Time          `bson:"updated_at"`
}

type EmpDocumentInfo

type EmpDocumentInfo struct {
	ID          primitive.ObjectID `bson:"_id"`
	EID         string             `bson:"eid"`
	Domain      string             `bson:"domain"`
	Department  string             `bson:"department"`
	DocName     string             `bson:"doc_name"`
	DocCategory string             `bson:"doc_category"`
	DocType     string             `bson:"doc_type"`
	DocPath     string             `bson:"doc_path"`
	RegexText   string             `bson:"regex_text"`
	CreatedBy   string             `bson:"created_by"`
	CreatedAt   time.Time          `bson:"created_at"`
}

type EmpPersonalInfo

type EmpPersonalInfo struct {
	ID                   primitive.ObjectID `bson:"_id"`
	EmployeeId           string             `bson:"employee_id"`
	FirstName            string             `bson:"first_name"`
	MiddleName           string             `bson:"middle_name"`
	LastName             string             `bson:"last_name"`
	MotherName           string             `bson:"mother_name"`
	FatherName           string             `bson:"father_name"`
	Gender               string             `bson:"gender"`
	DOB                  string             `bson:"dob"`
	MaritalStatus        string             `bson:"marital_status"`
	SpouseName           string             `bson:"spouse_name"`
	Nationality          string             `bson:"nationality"`
	BloodGroup           string             `bson:"blood_group"`
	PhoneNumber          string             `bson:"phone_number"`
	EmergencyNumber      string             `bson:"emergency_number"`
	PersonalEmail        string             `bson:"email_id"`
	PAN                  string             `bson:"pan"`
	AadharNumber         string             `bson:"aadhar_number"`
	PassportNumber       string             `bson:"passport_number"`
	PermanentAddress     Address            `bson:"permanent_address"`
	CommunicationAddress Address            `bson:"communication_address"`
	BothAddressSame      bool               `bson:"both_address_same"`
	RegexText            string             `bson:"regex_text"`
	CreatedBy            string             `bson:"created_by"`
	CreatedAt            time.Time          `bson:"created_at"`
	UpdatedAt            time.Time          `bson:"updated_at"`
}

type EmpProfessionalInfo

type EmpProfessionalInfo struct {
	ID                    primitive.ObjectID `bson:"_id"`
	EmployeeId            string             `bson:"employee_id"`
	EmployeeType          string             `bson:"employee_type"`
	Department            string             `bson:"department"`
	Designation           string             `bson:"designation"`
	Role                  string             `bson:"role"`
	EmailId               string             `bson:"email_id"`
	JoiningDate           string             `bson:"joining_date"`
	ReleavingDate         string             `bson:"releaving_date"`
	EmploymentStatus      string             `bson:"employment_status"`
	OfficeLocation        string             `bson:"office_location"`
	WorkLocation          string             `bson:"work_location"`
	WorkAddress           Address            `bson:"work_address"`
	ReportingManagerName  string             `bson:"reporting_manager"`
	ReportingManagerId    string             `bson:"reporting_manager_id"`
	ReportingManagerEmail string             `bson:"reporting_manager_email"`
	RegexText             string             `bson:"regex_text"`
	CreatedBy             string             `bson:"created_by"`
	CreatedAt             time.Time          `bson:"created_at"`
	UpdatedAt             time.Time          `bson:"updated_at"`
}

type EmpQualificationInfo

type EmpQualificationInfo struct {
	ID                         primitive.ObjectID `bson:"_id"`
	EID                        string             `bson:"eid"`
	SecondarySchoolName        string             `bson:"secondary_school_name"`
	SecondarySchoolStartYear   string             `bson:"secondary_school_start_year"`
	SecondarySchoolEndYear     string             `bson:"secondary_school_end_year"`
	SecondarySchoolBoard       string             `bson:"secondary_school_board"`
	SecondarySchoolRollNo      string             `bson:"secondary_school_rollno"`
	SecondarySchoolAddress     string             `bson:"secondary_school_address"`
	HighSchoolName             string             `bson:"high_school_name"`
	HighSchoolStartYear        string             `bson:"high_school_start_year"`
	HighSchoolEndYear          string             `bson:"high_school_end_year"`
	HighSchoolStream           string             `bson:"high_school_stream"`
	HighSchoolBoard            string             `bson:"high_school_board"`
	HighSchoolRollNo           string             `bson:"high_school_rollno"`
	HighSchoolAddress          string             `bson:"high_school_address"`
	GraduationInstitute        string             `bson:"graduation_institute"`
	GraduationStartYear        string             `bson:"graduation_start_year"`
	GraduationEndYear          string             `bson:"graduation_end_year"`
	GraduationDegree           string             `bson:"graduation_degree"`
	GraduationMajor            string             `bson:"graduation_major"`
	GraduationRollNo           string             `bson:"graduation_rollno"`
	GraduationInstituteAddress string             `bson:"graduation_institute_address"`
	PostGradInstitute          string             `bson:"postgrad_institute"`
	PostGradStartYear          string             `bson:"postgrad_start_year"`
	PostGradEndYear            string             `bson:"postgrad_end_year"`
	PostGradDegree             string             `bson:"postgrad_degree"`
	PostGradSpecialization     string             `bson:"postgrad_specialization"`
	PostGradRollNo             string             `bson:"postgrad_rollno"`
	PostGradInstituteAddress   string             `bson:"postgrad_institute_address"`
	DoctorateUniversity        string             `bson:"doctorate_university"`
	DoctorateStartYear         string             `bson:"doctorate_start_year"`
	DoctorateEndYear           string             `bson:"doctorate_end_year"`
	DoctorateDegree            string             `bson:"doctorate_degree"`
	DoctorateSpecialization    string             `bson:"doctorate_specialization"`
	DoctorateRollNo            string             `bson:"doctorate_rollno"`
	DoctorateUniversityAddress string             `bson:"doctorate_university_Address"`
	CreatedAt                  time.Time          `bson:"created_at"`
	UpdatedAt                  time.Time          `bson:"updated_at"`
}

type EmployeeAttendance

type EmployeeAttendance struct {
	ID                      primitive.ObjectID `bson:"_id"`
	EID                     string             `bson:"eid"`
	Domain                  string             `bson:"domain"`
	Department              string             `bson:"department"`
	Day                     string             `bson:"day"`
	Month                   string             `bson:"month"`
	Year                    string             `bson:"year"`
	CaptureCheckInLocation  bool               `bson:"capture_check_in_location"`
	EnforceLocationCheckIn  bool               `bson:"enforce_location_check_in"`
	EnforceLocationCheckOut bool               `bson:"enforce_location_check_out"`
	RequiredLat             float64            `bson:"required_lat"`
	RequiredLng             float64            `bson:"required_lng"`
	CheckInLat              float64            `bson:"check_in_lat"`
	CheckInLng              float64            `bson:"check_in_lng"`
	CheckOutLat             float64            `bson:"check_out_lat"`
	CheckOutLng             float64            `bson:"check_out_lng"`
	FlexiHoursEnabled       bool               `bson:"flexi_hours_enabled"`
	FlexiHourWindowInMin    int32              `bson:"flexi_hour_window_in_min"`
	OrgCheckInTime          string             `bson:"org_check_in_time"`
	OrgCheckOutTime         string             `bson:"org_check_out_time"`
	CheckinMarginInMin      int32              `bson:"check_in_margin_in_min"`
	IsCheckedIn             bool               `bson:"is_checked_in"`
	CheckInTime             string             `bson:"check_in_time"`
	IsCheckedOut            bool               `bson:"is_checked_out"`
	CheckOutTime            string             `bson:"check_in_out"`
	WorkingHours            float32            `bson:"working_hours"`
	IsDelayedCheckIn        bool               `bson:"is_delayed_check_in"`
	IsEarlyCheckOut         bool               `bson:"is_early_check_out"`
	IsOnLeave               bool               `bson:"is_on_leave"`
	IsWorkingDay            bool               `bson:"is_working_day"`
	IsWeeklyOffDay          bool               `bson:"is_weekly_off_day"`
	Remarks                 string             `bson:"remarks"`
}

type EmployeeInfo

type EmployeeInfo struct {
	EmployeeId      string `bson:"employee_id"`
	FullName        string `bson:"full_name"`
	Department      string `bson:"department"`
	Designation     string `bson:"designation"`
	Status          string `bson:"status"`
	ProfileImageURL string `bson:"profile_image_url"`
}

type EmployeeLeave

type EmployeeLeave struct {
	ID          primitive.ObjectID `bson:"_id"`
	EmployeeId  string             `bson:"employee_id"`
	FullName    string             `bson:"full_name"`
	PhoneNumber string             `bson:"phone_number"`
	EmailId     string             `bson:"email_id"`
	CasualLeave string             `bson:"casual_leave"`
	SickLeave   string             `bson:"sick_leave"`
	EarnedLeave string             `bson:"earned_leave"`
}

type EmployeeLeaveObj

type EmployeeLeaveObj struct {
	ID                           primitive.ObjectID `bson:"_id"`
	EmployeeId                   string             `bson:"employee_id"`
	FullName                     string             `bson:"full_name"`
	PhoneNumber                  string             `bson:"phone_number"`
	EmailId                      string             `bson:"email_id"`
	LeaveType                    string             `bson:"leave_type"`
	LeaveStatus                  string             `bson:"leave_status"`
	ISBulkLeave                  bool               `bson:"is_bulk_leave"`
	RequiredNoticeDays           float32            `bson:"required_notice_days"`
	ActualNoticeDays             float32            `bson:"actual_notice_days"`
	LeaveStartDate               string             `bson:"leave_start_date"`
	LeaveEndDate                 string             `bson:"leave_end_date"`
	IncludeNonWorkingDays        bool               `bson:"include_non_working_days"`
	TotalAppliedLeaves           float32            `bson:"total_applied_leaves"`
	TotalOutOfOfficeDays         float32            `bson:"total_out_of_office_days"`
	IncludeWithoutPayLeave       bool               `bson:"include_without_pay_leave"`
	TotalWithouPayLeaves         float32            `bson:"total_without_pay_leaves"`
	PrimaryApproverId            string             `bson:"primary_approver_id"`
	PrimaryApproverName          string             `bson:"primary_approver_name"`
	PrimaryApproverDesignation   string             `bson:"primary_approver_designation"`
	SecondaryApproverId          string             `bson:"secondary_approver_id"`
	SecondaryApproverName        string             `bson:"secondary_approver_name"`
	SecondaryApproverDesignation string             `bson:"secondary_approver_designation"`
	NeedBothApproval             bool               `bson:"need_both_approval"`
	LeveApplicationDate          string             `bson:"leave_application_date"`
	PrimaryLeaveApprovalDate     string             `bson:"primary_leave_approval_date"`
	SecondaryLeaveApprovalDate   string             `bson:"secondary_leave_approval_date"`
	IncludeWithdrawalLeaves      bool               `bson:"include_withdrawal_leaves"`
	TotalApprovedLeaves          float32            `bson:"total_approved_leaves"`
	Leaves                       []Leave            `bson:"leave"`
	Remarks                      string             `bson:"remarks"`
}

type EmployeeLeaveStatus

type EmployeeLeaveStatus struct {
	ID             primitive.ObjectID `bson:"_id"`
	EmployeeId     string             `bson:"employee_id"`
	FullName       string             `bson:"full_name"`
	PhoneNumber    string             `bson:"phone_number"`
	EmailId        string             `bson:"email_id"`
	EmpJoiningDate string             `bson:"emp_joining_date"`
	Year           string             `bson:"year"`
	LeavesStats    []LeaveStats       `bson:"leaves_stats"`
}

type EmployeeSummary

type EmployeeSummary struct {
	ID                    primitive.ObjectID `bson:"_id"`
	EmployeeId            string             `bson:"employee_id"`
	FullName              string             `bson:"full_name"`
	DOB                   string             `bson:"dob"`
	PhoneNumber           string             `bson:"phone_number"`
	EmailId               string             `bson:"email_id"`
	EmployeeType          string             `bson:"employee_type"`
	Department            string             `bson:"department"`
	Designation           string             `bson:"designation"`
	Role                  string             `bson:"role"`
	EmploymentStatus      string             `bson:"employment_status"`
	OfficeLocation        string             `bson:"office_location"`
	WorkLocation          string             `bson:"work_location"`
	ReportingManagerName  string             `bson:"reporting_manager"`
	ReportingManagerId    string             `bson:"reporting_manager_id"`
	ReportingManagerEmail string             `bson:"reporting_manager_email"`
	ImgURL                string             `bson:"img_url"`
	RegexText             string             `bson:"regex_text"`
	CreatedBy             string             `bson:"created_by"`
	CreatedAt             time.Time          `bson:"created_at"`
	UpdatedAt             time.Time          `bson:"updated_at"`
}

type EmployeeType

type EmployeeType struct {
	ID          primitive.ObjectID `bson:"_id"`
	OrgId       string             `bson:"org_id"`
	OrgName     string             `bson:"org_name"`
	DepId       string             `bson:"dep_id"`
	DepName     string             `bson:"dep_name"`
	Title       string             `bson:"title"`
	IsActive    bool               `bson:"is_active"`
	Description string             `bson:"description"`
	CreatedBy   string             `bson:"created_by"`
	CreatedAt   time.Time          `bson:"created_at"`
	UpdatedAt   time.Time          `bson:"updated_at"`
}

type Holiday

type Holiday struct {
	SNo         string `json:"sno"`
	Date        string `json:"date"`
	Day         string `json:"day"`
	Holiday     string `json:"holiday"`
	HolidayType string `json:"holiday_type"`
}

type Leave

type Leave struct {
	Day                 string `bson:"day"`
	Month               string `bson:"month"`
	Year                string `bson:"year"`
	LeaveType           string `bson:"leave_type"`
	LeaveStatus         string `bson:"leave_status"`
	IsWithoutPayLeave   bool   `bson:"is_without_pay_leave"`
	LeaveWithdrawalDate string `bson:"leave_withdrawal_date"`
	LeaveApprovalDate   string `bson:"leave_approval_date"`
	Remarks             string `bson:"remarks"`
}

type LeaveStats

type LeaveStats struct {
	LeaveType            string  `bson:"leave_type"`
	Year                 string  `bson:"year"`
	CarryForwardLeaves   float32 `bson:"carry_forward_leaves"`
	EarnedLeavesThisYear float32 `bson:"earned_leaves_this_year"`
	TotalLeaves          float32 `bson:"total_leaves"`
	AvailableLeaves      float32 `bson:"available_leaves"`
	ConsumedLeaves       float32 `bson:"consumed_leaves"`
	AppliedLeaves        float32 `bson:"applied_leaves"`
	DaysPendingToUnlock  float32 `bson:"days_pending_to_unlock"`
}

type Marque

type Marque struct {
	ID         primitive.ObjectID `bson:"_id"`
	MarqueType string             `bson:"marque_type"`
	Message    string             `bson:"message"`
	DateFrom   string             `bson:"date_from"`
	DateTo     string             `bson:"date_to"`
}

type OrgAttendanceConf

type OrgAttendanceConf struct {
	ID                      primitive.ObjectID `bson:"_id"`
	OrgId                   string             `bson:"org_id"`
	OrgName                 string             `bson:"org_name"`
	CaptureCheckInLocation  bool               `bson:"capture_check_in_location"`
	EnforceLocationCheckIn  bool               `bson:"enforce_location_check_in"`
	EnforceLocationCheckOut bool               `bson:"enforce_location_check_out"`
	RequiredLat             float64            `bson:"required_lat"`
	RequiredLng             float64            `bson:"required_lng"`
	FlexiHoursEnabled       bool               `bson:"flexi_hours_enabled"`
	FlexiHourWindowInMin    int32              `bson:"flexi_hour_window_in_min"`
	OrgCheckInTime          string             `bson:"org_check_in_time"`
	OrgCheckOutTime         string             `bson:"org_check_out_time"`
	CheckinMarginInMin      int32              `bson:"check_in_margin_in_min"`
	WorkingDaysPerWeek      float32            `bson:"working_days_per_week"`
	WeeklyOffDays           []string           `bson:"weekly_off_days"`
	DailyWorkingHours       float32            `bson:"daily_working_hours"`
	CreatedAt               time.Time          `bson:"created_at"`
	UpdatedAt               time.Time          `bson:"updated_at"`
}

type OrgHoliday

type OrgHoliday struct {
	ID          primitive.ObjectID `bson:"_id"`
	OrgName     string             `bson:"org_name"`
	Day         string             `bson:"day"`
	Month       string             `bson:"month"`
	Year        string             `bson:"year"`
	Type        string             `bson:"type"`
	WeekDay     string             `bson:"week_day"`
	Description string             `bson:"description"`
}

type OrgLeaveConf

type OrgLeaveConf struct {
	ID                          primitive.ObjectID `bson:"_id"`
	OrgName                     string             `bson:"org_name"`
	Title                       string             `bson:"title"`
	IsFixed                     bool               `bson:"is_fixed"`
	Frequency                   string             `bson:"frequency"`
	LeaveCount                  float32            `bson:"leave_count"`
	LeaveUnit                   string             `bson:"leave_unit"`
	MaxLeaveCount               float32            `bson:"max_leave_count"`
	IsCarryForwardAllowed       bool               `bson:"is_carry_forward_allowed"`
	MaxCarryForwardCount        float32            `bson:"max_carry_forward_count"`
	BulkLeaveCount              int                `bson:"bulk_leave_count"`
	BulkLeaveNoticeInDays       int                `bson:"bulk_leave_notice_in_days"`
	IsEncashmentAllowed         bool               `bson:"encashment_allowed"`
	ApplicableAfterWorkingDays  int                `bson:"applicable_after_working_days"`
	DocumentRequired            bool               `bson:"document_required"`
	WeeklyOffAndHolidayIncluded bool               `bson:"weekly_off_and_holiday_included"`
	IsActive                    bool               `bson:"is_active"`
	Description                 string             `bson:"description"`
	YearStartDate               string             `bson:"year_start_date"`
	YearEndDate                 string             `bson:"year_end_date"`
	CreatedBy                   string             `bson:"created_by"`
	CreatedAt                   time.Time          `bson:"created_at"`
	UpdatedAt                   time.Time          `bson:"updated_at"`
}

type Organization

type Organization struct {
	ID               primitive.ObjectID `bson:"_id"`
	Domain           string             `bson:"domain"`
	Name             string             `bson:"name"`
	AdminEmailId     string             `bson:"admin_email_id"`
	AdminPhoneNumber string             `bson:"admin_phone_number"`
	AdminName        string             `bson:"admin_name"`
	OrgEmailId       string             `bson:"org_email_id"`
	OrgPhoneNumber   string             `bson:"org_phone_number"`
	Status           string             `bson:"status"`
	Address          string             `bson:"address"`
	ZipCode          string             `bson:"zip_code"`
	CountryCode      string             `bson:"country_code"`
	Description      string             `bson:"description"`
	SocialAccounts   []string           `bson:"social_accounts"`
	Website          string             `bson:"website"`
	CreatedBy        string             `bson:"created_by"`
	CreatedAt        time.Time          `bson:"created_at"`
	UpdatedAt        time.Time          `bson:"updated_at"`
}

type Post

type Post struct {
	ID           primitive.ObjectID `bson:"_id"`
	Topic        string             `bson:"topic"`
	Content      string             `bson:"content"`
	Image        string             `bson:"image"`
	ProfileImage string             `bson:"profile_image"`
	Important    bool               `bson:"important"`
	PostedBy     string             `bson:"posted_by"`
	Designation  string             `bson:"designation"`
	Date         string             `bson:"date"`
	CreatedAt    time.Time          `bson:"created_at"`
	UpdatedAt    time.Time          `bson:"updated_at"`
}

type Role

type Role struct {
	ID          primitive.ObjectID `bson:"_id"`
	OrgId       string             `bson:"org_id"`
	Title       string             `bson:"title"`
	IsActive    bool               `bson:"is_active"`
	Description string             `bson:"description"`
	CreatedBy   string             `bson:"created_by"`
	CreatedAt   time.Time          `bson:"created_at"`
	UpdatedAt   time.Time          `bson:"updated_at"`
}

type Tenant

type Tenant struct {
	ID                primitive.ObjectID `bson:"_id"`
	EID               string             `bson:"eid"`
	Domain            string             `bson:"domain"`
	OrgName           string             `bson:"org_name"`
	AdminEmailId      string             `bson:"admin_email_id"`
	AdminPhoneNumber  string             `bson:"admin_phone_number"`
	AdminName         string             `bson:"admin_name"`
	Department        string             `bson:"department"`
	Designation       string             `bson:"designation"`
	EmailVerified     bool               `bson:"email_verified"`
	Password          string             `bson:"password"`
	Role              string             `bson:"role"`
	ImageURL          string             `bson:"image_url"`
	FirstLoginPending bool               `bson:"first_login_pending"`
	Status            string             `bson:"status"`
	RefreshToken      string             `bson:"refresh_token"`
	CreatedBy         string             `bson:"created_by"`
	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