Week 1-2: Database schema implementation #3

Closed
opened 2026-02-08 19:00:48 +00:00 by makiolaj · 0 comments
Owner

Phase: Week 1-2 - Foundation + Core Inventory

Task

Implement complete database schema with migrations, seed data, and RLS policies.

Acceptance Criteria

  • All tables created (inventory_items, products, tags, units, item_tags)
  • Enums created (tag_category, unit_type)
  • RLS policies applied
  • Indexes created
  • Functions created (convert_unit, consume_item, search_products)
  • Triggers created (update_updated_at)
  • Default units seeded
  • Default tags seeded

Technical Details

  • Use migrations from docs/DATABASE.md
  • Create 3 migration files: schema, seed_units, seed_tags
  • Test all RLS policies
  • Verify conversions work correctly

Resources

  • docs/DATABASE.md (complete schema)
  • supabase/migrations/

Estimated Effort

2 days

**Phase:** Week 1-2 - Foundation + Core Inventory ## Task Implement complete database schema with migrations, seed data, and RLS policies. ## Acceptance Criteria - [ ] All tables created (inventory_items, products, tags, units, item_tags) - [ ] Enums created (tag_category, unit_type) - [ ] RLS policies applied - [ ] Indexes created - [ ] Functions created (convert_unit, consume_item, search_products) - [ ] Triggers created (update_updated_at) - [ ] Default units seeded - [ ] Default tags seeded ## Technical Details - Use migrations from docs/DATABASE.md - Create 3 migration files: schema, seed_units, seed_tags - Test all RLS policies - Verify conversions work correctly ## Resources - docs/DATABASE.md (complete schema) - supabase/migrations/ ## Estimated Effort 2 days
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: pantry-app/pantry#3