Asset Module - Database Schema Documentation for builds below 15000/7800

Asset Module - Database Schema Documentation for builds below 15000/7800

Asset Module — Database Schema Documentation

Section 1: Asset Core Details

FieldColumnSource TableJOIN Clause
Asset IDr.RESOURCEIDResources r
Asset Namer.RESOURCENAMEResources r
Asset Tagr.ASSETTAGResources r
Serial Numberr.SERIALNOResources r
Barcodeb.BARCODEBarcodes bLEFT JOIN Barcodes b ON r.BARCODEID = b.BARCODEID
Descriptionr.DESCRIPTIONResources r
IP Addressesr.IPADDRESSESResources r
Primary IPr.PRIMARYIPADDRESSResources r
MAC Addressesr.MACADDRESSESResources r
Is Personalr.ISPERSONALResources r
Is Loanabler.ISLOANABLEResources r
Location (Text)r.LOCATIONResources r
Scan Serial Numberr.SCANSERIALNUMBERResources r
Acquisition Datelongtodate(r.ACQUISITIONDATE)Resources r
Warranty Expirylongtodate(r.WARRANTYEXPIRY)Resources r
Expiry Datelongtodate(r.EXPIRYDATE)Resources r
Created Timelongtodate(r.CREATEDTIME)Resources r
Modified Timelongtodate(r.MODIFIEDTIME)Resources r

Section 2: Asset State

FieldColumnSource TableJOIN Clause
State (Display)rs.DISPLAYSTATEResourceState rsLEFT JOIN ResourceState rs ON r.RESOURCESTATEID = rs.RESOURCESTATEID
State Descriptionrs.STATEDESCResourceState rs(same)
State Detailrs.DESCRIPTIONResourceState rs(same)
Is Disposedrs.ISDISPOSEDResourceState rs(same)

Section 3: Product / Component Type

FieldColumnSource TableJOIN Clause
Product Namecd.COMPONENTNAMEComponentDefinition cdLEFT JOIN ComponentDefinition cd ON r.COMPONENTID = cd.COMPONENTID
Manufacturercd.MANUFACTURERNAMEComponentDefinition cd(same)
Part Numbercd.PARTNOComponentDefinition cd(same)
Product Costcd.COSTComponentDefinition cd(same)
Asset Typect.COMPONENTTYPENAMEComponentType ctLEFT JOIN ComponentType ct ON cd.COMPONENTTYPEID = ct.COMPONENTTYPEID
Resource Typert.TYPEResourceType rtLEFT JOIN ResourceType rt ON ct.RESOURCETYPEID = rt.RESOURCETYPEID
Resource Categoryrc.CATEGORYResourceCategory rcLEFT JOIN ResourceCategory rc ON ct.RESOURCECATEGORYID = rc.RESOURCECATEGORYID

Section 4: Asset Owner

FieldColumnSource TableJOIN Clause
Owner Nameowneruser.FIRST_NAMEAaaUser owneruserLEFT JOIN ResourceOwner ro ON r.RESOURCEID = ro.RESOURCEID
LEFT JOIN SDUser ownersdu ON ro.USERID = ownersdu.USERID
LEFT JOIN AaaUser owneruser ON ownersdu.USERID = owneruser.USER_ID
Owner Employee IDownersdu.EMPLOYEEIDSDUser ownersdu(via ResourceOwner)
Owner Job Titleownersdu.JOBTITLESDUser ownersdu(via ResourceOwner)
Owner Departmentownerdept.DEPTNAMEDepartmentDefinition ownerdeptLEFT JOIN DepartmentDefinition ownerdept ON ro.DEPTID = ownerdept.DEPTID
Owner VIPownersdu.ISVIPUSERSDUser ownersdu(via ResourceOwner)
Owner Emailownercontact.EMAILIDAaaContactInfo ownercontactLEFT JOIN AaaUserContactInfo owneruci ON owneruser.USER_ID = owneruci.USER_ID
LEFT JOIN AaaContactInfo ownercontact ON owneruci.CONTACTINFO_ID = ownercontact.CONTACTINFO_ID

Section 5: Ownership History

FieldColumnSource TableJOIN Clause
Assigned Userhistuser.FIRST_NAMEAaaUser histuserLEFT JOIN ResourceOwnerHistory roh ON r.RESOURCEID = roh.RESOURCEID
LEFT JOIN SDUser histsdu ON roh.USERID = histsdu.USERID
LEFT JOIN AaaUser histuser ON histsdu.USERID = histuser.USER_ID
Changed Bytaskuser.FIRST_NAMEAaaUser taskuserLEFT JOIN SDUser tasksdu ON roh.TASKUSERID = tasksdu.USERID
LEFT JOIN AaaUser taskuser ON tasksdu.USERID = taskuser.USER_ID
Ownership Startlongtodate(roh.STARTTIME)ResourceOwnerHistory roh(same)
Ownership Endlongtodate(roh.ENDTIME)ResourceOwnerHistory roh(same)
Departmentrohdept.DEPTNAMEDepartmentDefinition rohdeptLEFT JOIN DepartmentDefinition rohdept ON roh.DEPTID = rohdept.DEPTID
Commentsroh.COMMENTSResourceOwnerHistory roh(same)

Section 6: State History

FieldColumnSource TableJOIN Clause
New Statenewstate.DISPLAYSTATEResourceState newstateLEFT JOIN ResourceStateHistory rsh ON r.RESOURCEID = rsh.RESOURCEID
LEFT JOIN ResourceState newstate ON rsh.RESOURCESTATEID = newstate.RESOURCESTATEID
Previous Stateprevstate.DISPLAYSTATEResourceState prevstateLEFT JOIN ResourceState prevstate ON rsh.PREVRESOURCESTATEID = prevstate.RESOURCESTATEID
State Change Timelongtodate(rsh.STARTTIME)ResourceStateHistory rsh(same)
State End Timelongtodate(rsh.ENDTIME)ResourceStateHistory rsh(same)
Changed Bystateuser.FIRST_NAMEAaaUser stateuserLEFT JOIN SDUser statesdu ON rsh.USERID = statesdu.USERID
LEFT JOIN AaaUser stateuser ON statesdu.USERID = stateuser.USER_ID
Commentsrsh.COMMENTSResourceStateHistory rsh(same)

Section 7: Site / Region / Physical Location

FieldColumnSource TableJOIN Clause
Sitesdo.NAMESDOrganization sdoLEFT JOIN SiteDefinition sitedef ON r.SITEID = sitedef.SITEID
LEFT JOIN SDOrganization sdo ON sitedef.SITEID = sdo.ORG_ID
Regionregiondef.REGIONNAMERegionDefinition regiondefLEFT JOIN RegionDefinition regiondef ON sitedef.REGIONID = regiondef.REGIONID
Buildingbldg.BUILDINGNAMEBuildingDefinition bldgLEFT JOIN ResourceLocation rloc ON r.RESOURCEID = rloc.RESOURCEID
LEFT JOIN BuildingDefinition bldg ON rloc.BUILDINGID = bldg.BUILDINGID
Floorflr.FLOORNAMEFloorDefinition flrLEFT JOIN FloorDefinition flr ON rloc.FLOORID = flr.FLOORID
Roomrm.ROOMNAMERoomDefinition rmLEFT JOIN RoomDefinition rm ON rloc.ROOMID = rm.ROOMID
Location (Text)rloc.LOCATIONResourceLocation rloc(same)
Latituderloc.LATITUDEResourceLocation rloc(same)
Longituderloc.LONGITUDEResourceLocation rloc(same)

Section 8: CI / CMDB

FieldColumnSource TableJOIN Clause
CI IDci.CIIDCI ciLEFT JOIN CI ci ON r.CIID = ci.CIID
CI Nameci.CINAMECI ci(same)
CI Descriptionci.DESCRIPTIONCI ci(same)
CI Typecitype.TYPENAMECIType citypeLEFT JOIN CIType citype ON ci.CITYPEID = citype.TYPEID
CI Statuscistatus.STATUSNAMECIStatus cistatusLEFT JOIN CIStatus cistatus ON ci.STATUSID = cistatus.STATUSID
CI Created Datelongtodate(ci.CREATEDDATE)CI ci(same)
CI Last Modifiedlongtodate(ci.LASTMODIFIED)CI ci(same)
CI Versionci.VERSIONCI ci(same)

Section 9: Vendor

FieldColumnSource TableJOIN Clause
Vendor Namevd.NAMEVendorDefinition vdLEFT JOIN VendorDefinition vd ON r.VENDORID = vd.VENDORID
Contact Personvd.CONTACTPERSONVendorDefinition vd(same)
Emailvd.EMAILIDVendorDefinition vd(same)
Phonevd.LANDLINEVendorDefinition vd(same)
Faxvd.FAXVendorDefinition vd(same)
Websitevd.WEB_URLVendorDefinition vd(same)
Cityvd.CITYVendorDefinition vd(same)
Statevd.STATEVendorDefinition vd(same)
Countryvd.COUNTRYVendorDefinition vd(same)

Section 10: Purchase Order Chain

FieldColumnSource TableJOIN Clause
PO Namepo.PONAMEPurchaseOrder poLEFT JOIN PurchaseLot pl ON r.PURCHASELOTID = pl.PURCHASELOTID
LEFT JOIN PurchaseOrderItem poi ON pl.PURCHASEORDERITEMID = poi.PURCHASEORDERITEMID
LEFT JOIN PurchaseOrder po ON poi.PURCHASEORDERID = po.PURCHASEORDERID
PO Custom IDpo.POCUSTOMIDPurchaseOrder po(same)
Date Orderedlongtodate(po.DATEORDERED)PurchaseOrder po(same)
Date Requiredlongtodate(po.DATEREQUIRED)PurchaseOrder po(same)
Shipping Pricepo.SHIPPINGPRICEPurchaseOrder po(same)
Sales Taxpo.SALESTAXPurchaseOrder po(same)
Total Pricepo.TOTALPRICEPurchaseOrder po(same)
PO Item Namepoi.ITEMNAMEPurchaseOrderItem poi(same)
PO Item Pricepoi.PRICEPurchaseOrderItem poi(same)
Quantity Orderedpoi.QUANTITYORDEREDPurchaseOrderItem poi(same)
Lot Date Receivedlongtodate(pl.DATERECEIVED)PurchaseLot pl(same)
Lot Warranty Expirylongtodate(pl.WARRANTYEXPIRY)PurchaseLot pl(same)
Lot Lease Expirylongtodate(pl.LEASEEXPIRY)PurchaseLot pl(same)
PO Requesterporeq.FIRST_NAMEAaaUser poreqLEFT JOIN SDUser poreqsdu ON po.REQUESTERID = poreqsdu.USERID
LEFT JOIN AaaUser poreq ON poreqsdu.USERID = poreq.USER_ID
PO Vendorpovd.NAMEVendorDefinition povdLEFT JOIN VendorDefinition povd ON po.VENDORID = povd.VENDORID

Section 11: Cost

FieldColumnSource TableJOIN Clause
Purchase Costrcost.PURCHASECOSTResourceToCost rcostLEFT JOIN ResourceToCost rcost ON r.RESOURCEID = rcost.RESOURCEID
Operational Costrcost.OPERATIONALCOSTResourceToCost rcost(same)
Current Costrcost.CURRENTCOSTResourceToCost rcost(same)
Total Costrcost.TOTALCOSTResourceToCost rcost(same)

Section 12: System / Hardware Info

FieldColumnSource TableJOIN Clause
Workstation Namesi.WORKSTATIONNAMESystemInfo siLEFT JOIN SystemInfo si ON r.RESOURCEID = si.WORKSTATIONID
System Manufacturersi.MANUFACTURERSystemInfo si(same)
System Modelsi.MODELSystemInfo si(same)
Service Tagsi.SERVICETAGSystemInfo si(same)
BIOS Namesi.BIOSNAMESystemInfo si(same)
BIOS Versionsi.BIOSVERSIONSystemInfo si(same)
Logged Usersi.LOGGEDUSERSystemInfo si(same)
Processor Summarysi.PROCESSORSystemInfo si(same)
Processor Countsi.PROCESSORCOUNTSystemInfo si(same)
Core Countsi.PROCESSORCORECOUNTSystemInfo si(same)
Disk Spacesi.DISKSPACESystemInfo si(same)
RAM Slotssi.RAMSLOTSCOUNTSystemInfo si(same)
Agent Installedsi.ISAGENTINSTALLEDSystemInfo si(same)
Agent Versionsi.AGENTVERSIONSystemInfo si(same)
Last Boot Timesi.LASTBOOTTIMESystemInfo si(same)
Is Serversi.ISSERVERSystemInfo si(same)

Processor Details

FieldColumnSource TableJOIN Clause
CPU Namepi.CPUNAMEProcessorInfo piLEFT JOIN ProcessorInfo pi ON si.WORKSTATIONID = pi.WORKSTATIONID
CPU Speedpi.SPEEDProcessorInfo pi(same)
CPU Vendorpi.VENDORProcessorInfo pi(same)
CPU Modelpi.CPUMODELProcessorInfo pi(same)
CPU Serialpi.CPUSERIALNUMBERProcessorInfo pi(same)
Number of Corespi.NUMBEROFCORESProcessorInfo pi(same)

Memory Details

FieldColumnSource TableJOIN Clause
Total Memorymi.TOTALMEMORYMemoryInfo miLEFT JOIN MemoryInfo mi ON si.WORKSTATIONID = mi.WORKSTATIONID
Free Memorymi.FREEMEMORYMemoryInfo mi(same)
Virtual Memorymi.VIRTUALMEMORYMemoryInfo mi(same)

Memory Module Details

FieldColumnSource TableJOIN Clause
Module Namemm.NAMEMemoryModuleInfo mmLEFT JOIN MemoryModuleInfo mm ON si.WORKSTATIONID = mm.WORKSTATIONID
Capacitymm.CAPACITYMemoryModuleInfo mm(same)
Memory Typemm.MEMORYTYPEMemoryModuleInfo mm(same)
Frequencymm.FREQUENCYMemoryModuleInfo mm(same)
Socket Labelmm.SOCKETLABELMemoryModuleInfo mm(same)

Hard Disk Details

FieldColumnSource TableJOIN Clause
Model Numberhd.MODELNUMBERHardDiskInfo hdLEFT JOIN HardDiskInfo hd ON si.WORKSTATIONID = hd.WORKSTATIONID
Serial Numberhd.SERIALNUMBERHardDiskInfo hd(same)
Capacityhd.CAPACITYHardDiskInfo hd(same)
Free Spacehd.FREESPACEHardDiskInfo hd(same)
Drive Typehd.DRIVETYPEHardDiskInfo hd(same)
Manufacturerhd.MANUFACTURERHardDiskInfo hd(same)

Drive Details

FieldColumnSource TableJOIN Clause
Drive Namedr.DRIVENAMEDriveInfo drLEFT JOIN DriveInfo dr ON si.WORKSTATIONID = dr.WORKSTATIONID
Drive Typedr.DRIVETYPEDriveInfo dr(same)
Capacitydr.CAPACITYDriveInfo dr(same)
Free Spacedr.FREESPACEDriveInfo dr(same)
File Systemdr.FILESYSTEMDriveInfo dr(same)

Monitor Details

FieldColumnSource TableJOIN Clause
Monitor Typemon.MONITORTYPEMonitorInfo monLEFT JOIN MonitorInfo mon ON si.WORKSTATIONID = mon.WORKSTATIONID
Max Resolutionmon.MAXRESOLUTIONMonitorInfo mon(same)
Manufacturermon.MANUFACTURERMonitorInfo mon(same)
Serial Numbermon.SERIALNUMBERMonitorInfo mon(same)

OS Details

FieldColumnSource TableJOIN Clause
OS Nameosi.OSNAMEOSInfo osiLEFT JOIN OSInfo osi ON si.WORKSTATIONID = osi.WORKSTATIONID
Versionosi.VERSIONOSInfo osi(same)
Build Numberosi.BUILDNUMBEROSInfo osi(same)
Service Packosi.SERVICEPACKOSInfo osi(same)
Product IDosi.PRODUCTIDOSInfo osi(same)
System Typeosi.SYSTEMTYPEOSInfo osi(same)
License Typeosi.LICENSETYPEOSInfo osi(same)
License Statusosi.LICENSESTATUSOSInfo osi(same)

Network Details

FieldColumnSource TableJOIN Clause
NIC Nameni.NICNAMENetworkInfo niLEFT JOIN NetworkInfo ni ON r.RESOURCEID = ni.WORKSTATIONID
NIC Descriptionni.NICDESCRIPTIONNetworkInfo ni(same)
IP Addressni.IPADDRESSNetworkInfo ni(same)
MAC Addressni.MACADDRESSNetworkInfo ni(same)
Subnet Maskni.IPNETMASKNetworkInfo ni(same)
Gatewayni.GATEWAYNetworkInfo ni(same)
DHCPni.ISDHCPNetworkInfo ni(same)
DHCP Serverni.DHCPSERVERNetworkInfo ni(same)

Section 13: Software Installed

FieldColumnSource TableJOIN Clause
Software Nameswl.SOFTWARENAMESoftwareList swlLEFT JOIN SoftwareInfo swi ON si.WORKSTATIONID = swi.WORKSTATIONID
LEFT JOIN SoftwareList swl ON swi.SOFTWAREID = swl.SOFTWAREID
Product Nameswl.PRODUCTNAMESoftwareList swl(same)
Product Versionswl.PRODUCTVERSIONSoftwareList swl(same)
File Versionswl.FILEVERSIONSoftwareList swl(same)
Company Nameswl.COMPANYNAMESoftwareList swl(same)
Manufacturerswm.NAMESoftwareManufacturer swmLEFT JOIN SoftwareManufacturer swm ON swl.SWMANUFACTURERID = swm.SWMANUFACTURERID
Install Pathswi.LOCATIONSoftwareInfo swi(same)
File Sizeswi.FILESIZESoftwareInfo swi(same)

Section 14: Maintenance Contract

FieldColumnSource TableJOIN Clause
Contract Namemc.CONTRACTNAMEMaintenanceContract mcLEFT JOIN ContractDetails cdet ON r.RESOURCEID = cdet.RESOURCEID
LEFT JOIN MaintenanceContract mc ON cdet.CONTRACTID = mc.CONTRACTID
Custom Contract IDmc.CUSTOMCONTRACTIDMaintenanceContract mc(same)
From Datelongtodate(mc.FROMDATE)MaintenanceContract mc(same)
To Datelongtodate(mc.TODATE)MaintenanceContract mc(same)
Total Pricemc.TOTALPRICEMaintenanceContract mc(same)
Supportmc.SUPPORTMaintenanceContract mc(same)
Contract Vendormcvd.NAMEVendorDefinition mcvdLEFT JOIN VendorDefinition mcvd ON mc.MAINTENANCEVENDOR = mcvd.VENDORID

Section 15: Loan

FieldColumnSource TableJOIN Clause
Loan IDlo.LOANIDLoan loLEFT JOIN LoanResources lr ON r.RESOURCEID = lr.RESOURCEID
LEFT JOIN Loan lo ON lr.LOANID = lo.LOANID
Loan Custom IDlo.LOANCUSTOMIDLoan lo(same)
Loaned Toloanuser.FIRST_NAMEAaaUser loanuserLEFT JOIN SDUser loansdu ON lo.USERID = loansdu.USERID
LEFT JOIN AaaUser loanuser ON loansdu.USERID = loanuser.USER_ID
Loan Startlongtodate(lo.STARTTIME)Loan lo(same)
Loan Endlongtodate(lo.ENDTIME)Loan lo(same)
Extended Tolongtodate(lo.EXTENDEDTO)Loan lo(same)
Returned Onlongtodate(lo.RETURNEDON)Loan lo(same)
Loan Statuslo.STATUSLoan lo(same)
Is Returnedlr.ISRETURNEDLoanResources lr(same)

Section 16: Scan / Audit History

FieldColumnSource TableJOIN Clause
Audit Timelongtodate(ah.AUDITTIME)AuditHistory ahLEFT JOIN AuditHistory ah ON r.RESOURCEID = ah.WORKSTATIONID
Audit Statusah.AUDITSTATUSAuditHistory ah(same)
Commentsah.COMMENTSAuditHistory ah(same)
HW Change Tablehwah.TABLENAMEHWAuditHistory hwahLEFT JOIN HWAuditHistory hwah ON ah.AUDITID = hwah.AUDITID
HW Change Columnhwah.COLUMNNAMEHWAuditHistory hwah(same)
HW New Valuehwah.COLUMNVALUEHWAuditHistory hwah(same)
HW Old Valuehwah.COLUMNOLDVALUEHWAuditHistory hwah(same)
Operationao.OPERATIONSTRINGAuditOperation aoLEFT JOIN AuditOperation ao ON hwah.OPERATION = ao.OPERATION

Section 17: CI History

FieldColumnSource TableJOIN Clause
Edit Modecih.EDITMODECIHistory cihLEFT JOIN CIHistory cih ON ci.CIID = cih.CIID
Operation Timelongtodate(cih.OPERATIONTIME)CIHistory cih(same)
Changed Bycihuser.FIRST_NAMEAaaUser cihuserLEFT JOIN SDUser cihsdu ON cih.USERID = cihsdu.USERID
LEFT JOIN AaaUser cihuser ON cihsdu.USERID = cihuser.USER_ID
Attribute Changedcihd.ATTRIBUTECIHistoryDetails cihdLEFT JOIN CIHistoryDetails cihd ON cih.HISTORYID = cihd.HISTORYID
Old Valuecihd.OLDVALUECIHistoryDetails cihd(same)
New Valuecihd.NEWVALUECIHistoryDetails cihd(same)

Section 18: Depreciation

FieldColumnSource TableJOIN Clause
Depreciation Typedtype.DEPRECIATIONTYPEDepreciationType dtypeLEFT JOIN ResourceDepreciation rdep ON r.RESOURCEID = rdep.RESOURCEID
LEFT JOIN DepreciationDetails dd ON rdep.DEPRECIATIONID = dd.DEPRECIATIONID
LEFT JOIN DepreciationType dtype ON dd.DEPRECIATIONTYPEID = dtype.DEPRECIATIONTYPEID
Salvage Valuedd.SALVAGEVALUEDepreciationDetails dd(same)
Useful Lifedd.USEFULLIFEDepreciationDetails dd(same)
Depreciation %dd.DEPRECIATIONPERCENTDepreciationDetails dd(same)

Section 19: Asset Additional Fields (UDF)

FieldColumnSource TableJOIN Clause
UDF Char 1–24rf.UDF_CHAR1rf.UDF_CHAR24Resource_Fields rfLEFT JOIN Resource_Fields rf ON r.RESOURCEID = rf.RESOURCEID
UDF Long 1–10rf.UDF_LONG1rf.UDF_LONG10Resource_Fields rf(same)
UDF Date 1–10longtodate(rf.UDF_DATE1)Resource_Fields rf(same)

                  New to ADSelfService Plus?

                    • Related Articles

                    • 6. Database Schema

                      Request Module Column Name Column Value Joining Table Request ID wo.workorderid workorder wo Request Subject wo.title workorder wo Request created time longtodate(wo.createdtime) workorder wo Request category cd.CATEGORYNAME LEFT JOIN ...
                    • Support Center Schema - 8 series

                      To populate the WorkOrder/Request information, the tables that need tobe populated are : WorkOrder WorkOrderStates WorkOrder_Threaded WorkOrderToDescription WorkOrder_Fields (If there are any WorkOrder Addl Fields) To map Account and SubAccount to a ...
                    • Remote read only access to database for Postgres customers

                      Use case: Frequently customers want to connect some reporting / dashboard application like PowerBI or Tableau with our Postgres database server. By default, the bundled Postgres is configured to only listen to the local machine. We can configure to ...
                    • How to Connect to SCP Database ? (from 11000 builds)

                      In-Built POSTGRES (PGSQL) : Open a CMD prompt as an administrator and navigate to ManageEngine\supportcenterplus\pgsql\bin and run the below command 1. If the database is PGSQL (Default database) psql -h localhost -U scpadmin -p 65432 -d ...
                    • Online API documentation

                      Dear Users You can refer to the latest API document from our online demo page available here. (Login as administrator to view the same) Once login -> Goto Admin -> API -. Documentation to refer the same. or once login done -> click the below link to ...