{"id":19253246,"url":"https://github.com/pettiboy/java-ecommerce-sqlite","last_synced_at":"2025-06-20T12:33:09.491Z","repository":{"id":122474443,"uuid":"430359746","full_name":"pettiboy/java-ecommerce-sqlite","owner":"pettiboy","description":"CLI  E-commerce application using java and sqlite","archived":false,"fork":false,"pushed_at":"2022-12-04T21:29:39.000Z","size":9506,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T17:12:34.218Z","etag":null,"topics":["ecommerce","java","java-sqlite","javaproject"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pettiboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-21T12:27:54.000Z","updated_at":"2023-07-26T11:43:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e002fd3-d038-4c31-bba6-ce613afcefe2","html_url":"https://github.com/pettiboy/java-ecommerce-sqlite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pettiboy/java-ecommerce-sqlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pettiboy%2Fjava-ecommerce-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pettiboy%2Fjava-ecommerce-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pettiboy%2Fjava-ecommerce-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pettiboy%2Fjava-ecommerce-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pettiboy","download_url":"https://codeload.github.com/pettiboy/java-ecommerce-sqlite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pettiboy%2Fjava-ecommerce-sqlite/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260944854,"owners_count":23086899,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ecommerce","java","java-sqlite","javaproject"],"created_at":"2024-11-09T18:29:53.965Z","updated_at":"2025-06-20T12:33:04.460Z","avatar_url":"https://github.com/pettiboy.png","language":"Java","readme":"# Java E-Commerce CLI Using SQLite\n\n## Usage\n\n### Clone repo\n\n```\ngit clone git@github.com:pettiboy/java-ecommerce-sqlite.git\ncd java-ecommerce-sqlite\n```\n\n### Run code\n\nrun the main method in `src/Driver.java`\n\n## Tables\n\n### phone_otp\n\n```sql\nCREATE TABLE phone_otp(\n    id INTEGER PRIMARY KEY AUTOINCREMENT,\n    phone TEXT NOT NULL,\n    otp INTEGER NOT NULL\n);\n```\n\n### users\n\n```sql\nCREATE TABLE users(\n    id INTEGER PRIMARY KEY AUTOINCREMENT,\n    phone TEXT NOT NULL,\n    address TEXT NOT NULL,\n    timestamp TEXT NOT NULL,\n    isStaff TEXT NOT NULL\n);\n```\n\n### products\n\n```sql\nCREATE TABLE products(\n    id INTEGER PRIMARY KEY AUTOINCREMENT,\n    name TEXT NOT NULL,\n    price TEXT NOT NULL,\n    description TEXT NOT NULL,\n    isActive TEXT NOT NULL\n);\n```\n\n### orders\n\n```sql\nCREATE TABLE orders(\n    id INTEGER PRIMARY KEY AUTOINCREMENT,\n    userId INTEGER NOT NULL,\n    dateOrdered TEXT NOT NULL,\n    complete TEXT NOT NULL,\n    FOREIGN KEY(userId) REFERENCES users(id)\n);\n\nCREATE TABLE order_product (\n    id INTEGER PRIMARY KEY AUTOINCREMENT,\n    orderId INTEGER NOT NULL,\n    productId INTEGER NOT NULL,\n    FOREIGN KEY(orderId) REFERENCES orders(id),\n    FOREIGN KEY(productId) REFERENCES products(id)\n);\n```\n\n#### Why am I using TEXT instead of other datatypes?\n\nThis is because the values will be returned as `String` either way in `java`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpettiboy%2Fjava-ecommerce-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpettiboy%2Fjava-ecommerce-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpettiboy%2Fjava-ecommerce-sqlite/lists"}