Make inventory app

  • configuratie aanmaken
  • viewsets aanmaken
  • serializers aanmaken
  • urls aanpassen
  • Product aanmaken
    • id
    • slug
    • name
    • type
      • rentable
      • purchaseable
    • default_rental_period
    • price
  • Purchase aanmaken
    • id
    • slug
    • product; ForeignKey to Product
    • profile; ForeignKey to Profile
    • debt_entry; ForeignKey to DebtEntry
    • sunmember; ForeignKey to SUNMember
    • purchase_date
    • amount; minvaluevalidator >0
    • price; minvaluevalidator >0
    • total_price; minvaluevalidator >0; computedField: amount x price
  • Rental aanmaken
    • id
    • slug
    • product; ForeignKey to Product
    • profile; ForeignKey to Profile
    • sunmember; ForeignKey to SUNMember
    • date_rented
    • rented_until
    • price; minvaluevalidator >0
  • Profile aanpassen
    • purchases; ManyToMany to product through Purchase
    • rentals; ManyToMany to product through Rental