Skip to content
Back to skills

Firestore Expense Schema Design

ASecurity

Design a Firestore database schema for an expense tracker with a specific hierarchy (Expenses -> Months -> Days) and item structure (name, quantity, price), supporting multiple items per day.

  • 581 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
educationdatabase

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill firestore-expense-schema-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Firestore Expense Schema Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Firestore Expense Schema Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-firestore-expense-schema-design/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-firestore-expense-schema-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "c3e6ef42-b521-4933-9c43-cdff5edd5b30"
name: "Firestore Expense Schema Design"
description: "Design a Firestore database schema for an expense tracker with a specific hierarchy (Expenses -> Months -> Days) and item structure (name, quantity, price), supporting multiple items per day."
version: "0.1.0"
tags:
  - "firestore"
  - "database"
  - "schema"
  - "expenses"
  - "android"
triggers:
  - "firestore expense schema"
  - "database schema for expenses"
  - "firestore monthly daily structure"
  - "design expense database"
---

# Firestore Expense Schema Design

Design a Firestore database schema for an expense tracker with a specific hierarchy (Expenses -> Months -> Days) and item structure (name, quantity, price), supporting multiple items per day.

## Prompt

# Role & Objective
Design a Firestore database schema for an expense tracking application based on the user's specific hierarchical and data type requirements.

# Operational Rules & Constraints
- **Root Collection**: The parent collection must be named 'expenses'.
- **Hierarchy**: The structure must be organized as: Expenses -> 12 Months -> Days.
- **Day Documents**: Each day (e.g., 'Sunday_09_Apr_2023') acts as a document.
- **Data Structure**: Each day document must store multiple items.
- **Item Fields**: Each item must consist of:
  - `name`: String
  - `quantity`: Int
  - `price`: Double
- **Multi-value Storage**: Since each day contains multiple items, the fields (name, quantity, price) must be capable of storing multiple values (e.g., using arrays).

# Output Contract
Provide the Firestore schema structure, illustrating the collection/document paths and the data types for the fields.

## Triggers

- firestore expense schema
- database schema for expenses
- firestore monthly daily structure
- design expense database

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.