Compliance Is a Data Model: Designing Nigerian Data Systems for the NDPA 2023, GAID 2025 and the…
From the publisher’s feed, collected in the ZeroLabs newsroom.
The NDPA is not only a problem for lawyers. Data minimisation, retention, residency, consent, AI governance and data-subject rights should influence the way Nigerian engineers design databases from day one.Compliance Is a Data Model: Designing Nigerian Data Systems for the NDPA 2023, GAID 2025 and the Cloud EraWhy Nigerian organisations should stop treating data protection as a legal document and start implementing it in their schemas, pipelines and platformsMost conversations about data protection begin with privacy policies, consent forms and legal teams.For data engineers, architects and developers, that is already too late.By the time an organisation discovers that it cannot easily identify why a customer’s data was collected, where copies of it are stored, which application has access to it, when it should be deleted, or whether it has been transferred outside Nigeria, the real problem is rarely the privacy policy.The problem is often the data model.Nigeria’s data-protection environment has evolved significantly. The Nigeria Data Protection Act 2023, or NDP Act, is now the country’s central statutory framework for personal-data protection. The Nigeria Data Protection Commission, or NDPC, subsequently issued the General Application and Implementation Directive 2025 — GAID 2025 — to translate many of the Act’s principles into more operational requirements. GAID was issued on 20 March 2025 and came fully into force on 19 September 2025. (National Drug Policy Committee)At the same time, Nigeria is expanding its cloud, digital sovereignty and data-governance framework through NITDA. Its current regulatory catalogue includes the National Cloud Policy, cloud technical guidelines, interoperability standards and newer cloud-computing guidance. (NITDA)For technology teams, this creates an important question:What should a Nigerian data model actually look like if privacy, AI, analytics and regulatory compliance are requirements rather than afterthoughts?The answer requires us to rethink what we mean by data modelling.Data protection should begin before CREATE TABLEA traditional application data model might begin with something like:Customer--------CustomerIdFirstNameLastNameEmailPhoneDateOfBirthAddressNINCreatedDateTechnically, there is nothing unusual about this model.From a privacy-engineering perspective, however, several questions are unanswered.Why are we collecting DateOfBirth?Does this application really need NIN?Which business process requires Address?Which fields are necessary to execute the contract with the customer, and which were collected merely because “we might need them later”?Can marketing use the same email address?When should each field be deleted?Is the information replicated into a data lake?Has it entered an AI vector database?Does a support vendor outside Nigeria have access to it?Which lawful basis supports each processing activity?That is where the Nigerian regulatory framework becomes directly relevant to data architecture.Section 24 of the NDP Act establishes principles including fairness, lawfulness and transparency; purpose limitation; data minimisation; storage limitation; accuracy; security; and accountability. The NDPC summarises these principles as requiring data to be collected for specified and legitimate purposes, limited to what is necessary, kept no longer than required, and appropriately secured. (erp.ndpc.gov.ng)GAID makes the engineering implication even clearer. Its guidance states that “minimum necessary” means the least possible data essential to fulfilling the specified purpose and requires controllers and processors to maintain clear retention policies.That means a good Nigerian data model should answer not only:What does this column contain?It should also answer:Why are we allowed to have this column at all?Model the purpose, not just the personA common modelling mistake is attaching every available piece of information to a giant Customer table.A stronger design separates the identity of the individual from the purposes for which different pieces of information are being processed.For example:DataSubject-----------SubjectIdPrimaryIdentifierCreatedAtProcessingPurpose-----------------PurposeIdPurposeNameDescriptionLawfulBasisOwnerActiveFromActiveToDataAttribute-------------AttributeIdAttributeNameClassificationIsPersonalDataIsSensitiveEncryptionRequiredProcessingActivity------------------ActivityIdSubjectIdAttributeIdPurposeIdSourceSystemDestinationSystemCollectedAtRetentionPolicyIdThis looks more complicated than simply adding fields to Customer.That complexity is intentional.It allows an organisation to answer:“Why do we hold this information?”without searching through Confluence pages, contracts, emails and privacy policies.GAID explicitly expects organisations to understand and document their processing activities and makes reference to Records of Processing Activities, or ROPA, as an important accountability mechanism. (National Drug Policy Committee)A mature data architecture can make ROPA partially machine-generated instead of manually reconstructed once a year for compliance.That is an enormous architectural advantage.Lawful basis belongs closer to the dataOne of the most useful changes Nigerian organisations can make is to stop treating consent as the universal answer to privacy.Consent is one lawful basis, but it is not the only one.Depending on the processing activity, organisations may rely on grounds such as contract, legal obligation, legitimate interest, vital interest, public interest or consent. The NDPC itself demonstrates this approach in its privacy policy by mapping categories of processing to the applicable legal basis. (erp.ndpc.gov.ng)This suggests a simple architectural pattern:ProcessingPurpose-----------------PurposeIdNameLawfulBasisTypeLegalReferenceRequiresConsentRequiresDPIAAllowsSecondaryUseOwnerReviewDateNow consider what happens when a developer writes:SELECT EmailFROM CustomerWHERE ...In a conventional system, the database knows who the customer is but knows nothing about why the email is being used.In a more mature architecture, applications should request data within a defined processing context.Conceptually:Application ↓Processing Purpose ↓Authorised Data Attributes ↓Customer DataMarketing, fulfilment, fraud detection and customer support may all use the same customer record, but they should not automatically inherit identical rights to every attribute.That is purpose-based access control, and it may become increasingly important as organisations deploy AI agents capable of traversing multiple enterprise systems.Build retention into the modelOne of the most expensive phrases in enterprise data management is:“We keep everything.”It sounds safe.From a data-protection perspective, it may be exactly the opposite.GAID states that once the specified and legitimate purpose for retaining personal data has been fulfilled, the legitimate ground for retaining it may cease to exist. It also expects clear data-retention or storage policies.The engineering response should therefore be something more useful than a PDF titled Data_Retention_Policy_Final_v6.pdf.Retention should become data.For example:RetentionPolicy---------------RetentionPolicyIdDataCategoryRetentionTriggerRetentionDurationLegalBasisActionOnExpiryArchiveAllowedAnonymisationAllowedPolicyOwnerLastReviewedA record could then carry:CollectedAtPurposeCompletedAtRetentionPolicyIdScheduledDeletionAtDeletedAtDeletionMethodNow an Azure Data Factory pipeline, Databricks job, Fabric notebook or database procedure can automatically identify records that have passed their approved retention period.Compliance becomes executable.Erasure changes how you design relationshipsNigeria’s framework gives data subjects rights including access, rectification, objection, portability, restriction, erasure and protections relating to automated decision-making. (National Drug Policy Committee)These rights introduce an architectural question:Can you actually locate one person’s data?Imagine a customer exists in:CRMPayment platformSQL databaseData warehouseBlob storageApplication logsSupport systemMarketing platformVector databaseAnalytics lakehouseAI conversation historyBackupsDeleting the Customer row solves very little.This is why organisations need a durable internal identifier that can establish lineage across systems.Something like:SubjectIdentityMap------------------SubjectIdSystemExternalIdentifierRecordLocationDataClassificationLastSynchronizedFrom there, a Data Subject Request can become a controlled workflow rather than a manual investigation.DataSubjectRequest------------------RequestIdSubjectIdRequestTypeReceivedAtVerifiedAtDueAtStatusSystemsAffectedCompletedAtEvidenceLocationThe regulatory requirement therefore creates a very practical data-engineering requirement:personal-data lineage.Your data catalogue should know where the data physically livesNigeria’s cross-border rules make data location an architectural attribute, not merely an infrastructure decision.GAID states that cross-border transfer may rely on mechanisms including an adequacy decision by the Commission, an approved Cross-Border Data Transfer Instrument, or other lawful bases recognised by the framework.Consequently, an enterprise catalogue should contain more than:Server = prod-sql-01A more useful model would include:DataLocation------------LocationIdProviderServiceCountryRegionDataClassificationContainsPersonalDataContainsSensitiveDataTransferMechanismIdEncryptionAtRestEncryptionInTransitKeyLocationThen:CrossBorderTransfer-------------------TransferIdSourceCountryDestinationCountryPurposeIdDataCategoriesTransferMechanismApprovalReferenceStartDateReviewDateProcessorThis becomes particularly important in architectures involving Azure, AWS, Google Cloud, SaaS platforms and global AI APIs.Sending information to an API endpoint can itself form part of a data flow.Cloud architecture diagrams therefore need a new question beside every arrow:What data crosses this boundary?But does Nigeria require all data to remain in Nigeria?This is an area where technology discussions can easily become misleading.The safer answer is: do not reduce Nigerian data law to “everything must be hosted locally.”The NDP Act provides mechanisms for legitimate cross-border personal-data transfers. Meanwhile, Nigeria’s evolving sovereign-cloud programme creates stronger residency and sovereignty requirements for particular government and public-sector workloads.NITDA’s National Cloud Policy 2025 introduced a Cloud First strategy, a national data-classification approach and stronger data-residency requirements. Its accompanying technical guidance is principally targeted at Federal Public Institutions and the cloud providers and integrators serving those environments. (NITDA)This distinction matters.A Nigerian fintech deploying an ordinary commercial workload should not blindly copy the architecture of a Federal Government agency handling classified information.Equally, an architect designing a government system should not assume that a standard global SaaS deployment automatically satisfies Nigerian sovereignty requirements.Classification should determine architecture.Design classification into the schemaAt minimum, an organisation should be able to distinguish:Non-personalPersonalSensitive personalConfidential corporatePublicGovernment-sensitiveRestricted/classifiedThe exact taxonomy will depend on the organisation, sector and applicable regulation.This classification can then drive:EncryptionMaskingRBAC/ABACTokenisationData residencyBackup locationLoggingRetentionDLP policiesAI accessExport restrictionsA particularly useful pattern is to move classification into metadata rather than scattering it throughout application code.For example:DataClassification------------------ClassificationIdNameEncryptionRequiredMaskingRequiredExternalAIAllowedCrossBorderAllowedApprovalRequiredMinimumRetentionMaximumRetentionLoggingLevelNow the security rule follows the classification, rather than requiring every development team to remember every regulation.AI makes this much more urgentGenerative AI has dramatically increased the importance of good data modelling.Consider a conventional RAG architecture:Documents ↓Ingestion ↓Chunking ↓Embeddings ↓Vector Database ↓Retrieval ↓LLMFrom a data-engineering perspective, it looks reasonable.From a privacy perspective, important information may have disappeared during ingestion.The vector database may know the text of a chunk but not:who the information belongs towhy the organisation holds itwhether it is sensitivewhether it may be used for AIwhere the original record came fromwhich country the document can be processed inwhen the source should be deletedwho is permitted to retrieve itThat creates what I would call compliance-blind RAG.The better model preserves policy metadata throughout ingestion:Chunk-----ChunkIdDocumentIdSubjectIdsClassificationPurposeIdAccessPolicyIdRetentionPolicyIdSourceSystemCountryRestrictionsSensitiveDataFlagsEmbeddingModelCreatedAtDeleteAfterRetrieval should then be:Query ↓User/Agent identity ↓Purpose ↓Policy filter ↓Authorised corpus ↓Hybrid retrieval ↓LLMrather than:Query ↓Vector search everything ↓Hope the LLM behavesGAID explicitly addresses emerging technologies and privacy by design, and the NDPC has repeatedly encouraged developers to embed privacy-preserving technologies and privacy-by-design principles into AI and digital platforms. (National Drug Policy Committee)DPIA should be part of architecture governanceUnder GAID, a Data Privacy Impact Assessment is required where processing is likely to present high risk to people’s rights and freedoms because of its nature, scope, context or purpose.The Directive specifically pays attention to new technologies and high-risk processing.For architects, this means DPIA should happen around the same time as:Architecture ReviewSecurity ReviewThreat ModellingCloud ReviewCost Review— not a week before production release.An architecture decision record could therefore include:ADR-042-------Decision:Deploy AI document intelligence service.Personal Data:YesSensitive Data:PossibleCross-Border Processing:YesDPIA Required:YesData Residency Review:RequiredRetention Model:Document policy RP-07Human Review:Required for high-impact decisionsPrivacy becomes part of the engineering lifecycle.Breach response also starts with the data modelGAID states that where a breach is likely to result in risk to individuals’ rights and freedoms, the controller must notify the Commission within 72 hours of becoming aware of it.Imagine discovering an exposed database and being unable to answer:How many people are affected?What categories of information were exposed?Was sensitive information involved?Which applications accessed the database?Which countries are affected?Which processor was responsible?Those become very difficult questions when data classification and lineage were never modelled.A well-governed catalogue allows incident teams to answer them quickly.GAID additionally expects monitoring, evaluation and maintenance of data-security systems, including activities such as database vulnerability testing, authentication checks, encryption review and software updates.Security controls therefore need to surround the schema — but the schema must also tell security teams what matters most.A practical Nigerian privacy-aware data architectureA modern Nigerian enterprise platform should increasingly be able to connect:DATA SUBJECT │ ▼ Identity Layer │ ┌───────────┴───────────┐ ▼ ▼ Business Records Consent / Rights │ │ └───────────┬───────────┘ ▼ Processing Purpose │ ▼ Lawful Basis │ ▼ Classification │ ┌───────────┼────────────┐ ▼ ▼ ▼ Retention Access Residency │ │ │ └───────────┼────────────┘ ▼ Data Platform SQL / Lake / SaaS / AI │ ▼ ROPA + Audit TrailNotice what has happened.Compliance has stopped being a document sitting beside the system.It has become part of the system.What I would require in a new Nigerian enterprise data platformFor a greenfield platform, my minimum architecture checklist would be:Every personal-data element has a documented purpose and owner; unnecessary fields do not enter the production schema. A data-classification catalogue identifies personal, sensitive and restricted information. Processing purposes are mapped to lawful bases rather than assuming consent covers everything. Consent, where applicable, is versioned and auditable. Subject identifiers allow records to be located across operational databases, data lakes, SaaS platforms and AI stores. Retention policies are machine-readable and capable of driving archival, anonymisation or deletion jobs. Data residency and cross-border transfers are recorded as metadata. Access is both role-aware and purpose-aware. AI/RAG ingestion retains classification and access metadata instead of stripping it away. High-risk processing triggers a DPIA before production. ROPA and compliance reporting should be generated as far as possible from actual platform metadata rather than manually reconstructed.That is a much stronger foundation than beginning with a privacy policy and hoping every system conforms to it.The larger lessonNigeria’s data-protection framework should not be seen merely as another compliance burden for CIOs.It can force better architecture.Data minimisation reduces storage and breach exposure.Purpose limitation reduces uncontrolled data reuse.Retention policies reduce obsolete data.Classification improves security.Lineage improves analytics and incident response.Structured consent improves customer experience.Cross-border metadata improves cloud governance.Subject identity mapping improves master-data management.Privacy-aware RAG improves enterprise AI.In other words, many of the things regulators want are also things good data architects should already want.The next generation of Nigerian systems should therefore not ask:“How do we make this database NDPA compliant?”The better question is:“How do we design a data platform where compliant behaviour is the default behaviour?”That is the difference between data protection as paperwork and data protection as architecture.And as Nigeria’s enterprises embrace cloud, AI, lakehouses, digital identity and agentic systems, that difference is going to matter enormously.Sources and further readingThe primary legal foundation is the Nigeria Data Protection Act 2023, administered by the Nigeria Data Protection Commission. NDPC — Nigeria Data Protection Act 2023The operational companion is the Nigeria Data Protection Act — General Application and Implementation Directive 2025 (GAID), including guidance covering data-protection principles, DPIAs, security, data-subject rights and cross-border transfers. NDPC — NDP Act GAID 2025For Nigeria’s broader technology and cloud policy landscape, NITDA maintains its current regulations, standards and cloud-governance instruments. NITDA Regulations and GuidelinesThis article discusses technology architecture and data-governance practices and should not be treated as legal advice. Sector-specific organisations such as banks, telecoms, healthcare providers and public institutions may have additional regulatory requirements.Compliance Is a Data Model: Designing Nigerian Data Systems for the NDPA 2023, GAID 2025 and the… was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.