name: Order Management App
entities:
Customer:
seedCount: 200
properties:
- { name: name, type: string }
- { name: email, type: string }
- { name: phone, type: string }
- { name: address, type: text }
Category:
properties:
- { name: name, type: string }
Product:
properties:
- { name: name, type: string }
- { name: current_price, type: money, options: { currency: 'EUR' } }
- { name: stock, type: number }
- { name: description, type: text }
- { name: image, type: image }
- { name: active, type: boolean }
belongsToMany:
- Category
Order:
properties:
- { name: date, type: timestamp }
- { name: total, type: number }
- { name: status, type: choice, options: { values: [pending, processing, shipped, delivered, canceled] } }
belongsTo:
- Customer
belongsToMany:
- OrderItem
OrderItem:
properties:
- { name: quantity, type: number }
belongsTo:
- Order
- Product
name: Order Management App
entities:
Customer:
seedCount: 200
properties:
- { name: name, type: string }
- { name: email, type: string }
- { name: phone, type: string }
- { name: address, type: text }
Category:
properties:
- { name: name, type: string }
Product:
properties:
- { name: name, type: string }
- { name: current_price, type: money, options: { currency: 'EUR' } }
- { name: stock, type: number }
- { name: description, type: text }
- { name: image, type: image }
- { name: active, type: boolean }
belongsToMany:
- Category
Order:
properties:
- { name: date, type: timestamp }
- { name: total, type: number }
- { name: status, type: choice, options: { values: [pending, processing, shipped, delivered, canceled] } }
belongsTo:
- Customer
belongsToMany:
- OrderItem
OrderItem:
properties:
- { name: quantity, type: number }
belongsTo:
- Order
- Product