Implement Room Database Entity for Todo Items #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implement Room Database Entity for Todo Items
Description
Task
Create Room database entity for Todo items
Acceptance Criteria
Summary of Work
This pull request implements the Room database entity for Todo items, establishing a robust and validated database schema for storing todo items in the application.
Changes Made
Todo.kt) with the following key features:@Entityfor Room database mappingImplementation Details
id: Auto-generated primary keytitle: Required, non-blank title with max length of 100 charactersdescription: Optional description with max length of 500 charactersisCompleted: Boolean flag to track todo item completion statuscreatedAt: Timestamp of todo item creation (defaults to current time)dueDate: Optional due date for the todo itemValidation Implemented
requirefunction for robust input validationDatabase Schema
Notes
LocalDateTimefor date and timestamp fieldsChanges Made
Tests
Signatures
Staking Key
941izj4WsQqBwNLsSgDf3BSKS1dJMbS1q9d2o23ZjBHp: VYBWNP1Xg2yxPnmXdKuZ4TQSPCSm5VmwHUgWnNacgKCEARfwSuZb41kqmiToDcC2nzPAFTLBz1U25k1LyZvDhu6vXyDnmyiRLApDzVSXuR39rQtj5KpbmyyFDHA4Z1EuftQZDr4fH2E8XzHDBZxvvsUewNcEZWTw15vtDtDTJS98wKwsxTbVLzy93eG151xgJp8x4mMZdPULe1CvxNXMvcvfBPjdo6LXtBURj9svx3qLFMxca4XhzeaiCbAzyFx6ShHkGqRM6b5uJHB76qN8unNdSmAH6G8so5Xd92WRaDNjZnLGSxwESiPfzmZHiqcBXc3mNGmVLB3qa86MELnYo8nFCVcD7ekGHuk56aEeLjiPCVFzTG9hpYqTT52nj5XncxsP6M6or6czLKSgkBRCaj9e11gcDnbcCtk
Public Key
EWghpH7Xb9HL74TitMBog5Vow8nFjpdJfNCa6hc2wfca: 3cd34Y7BJ5toemV3E7uEsG9RtdbuWrVtWiYbaskuWJhY8B5ST7DH1ndW4xoVLfTsskQDFYB5NMt1aMs7YPCAJoydvzYRn5sb8TpZTEkct7sz977nYeCCJbuBw64sMMiFFbzSuBN3vh4AssfS1YvzAx9TEHY5E4uQ2Y1iZRjkmUPqJggUNdvPFi1LCMhouBP3E6h9barEdVUaxR4jwkSNhrYaJb7pQp2NJEPgXpnST1zLrtfzM6JrRR7yHgrbkqBYGUKNFxzdK1MzNzPczgmx24QW2iLu8XRD3GLCZPRQYHt664xv7pKQkftEaDT9oNP94sYcQj69pKfRnpRfvJpHdYBbYkpC8FMmqhAxyJ4MHhVTRWQcnpJbZ841wSZbbBFvpeXEFfQVNKGpv88YAYgBkFjxyDrrZTuHRARA