mirror of
https://github.com/samiyev/puaros.git
synced 2025-12-27 23:06:54 +05:00
- Extract DDD folder names and repository method suggestions to constants - Fix regex pattern to support relative paths (domain/... without leading /) - Add non-aggregate folder exclusions (constants, shared, factories, etc.) - Remove findAll, exists, count from ORM_QUERY_METHODS (valid domain methods) - Add exists, count, countBy patterns to domainMethodPatterns - Add aggregate boundary test examples
17 lines
404 B
TypeScript
17 lines
404 B
TypeScript
import { User } from "../user/User"
|
|
import { Product } from "../product/Product"
|
|
|
|
export class Order {
|
|
private id: string
|
|
private user: User
|
|
private product: Product
|
|
private quantity: number
|
|
|
|
constructor(id: string, user: User, product: Product, quantity: number) {
|
|
this.id = id
|
|
this.user = user
|
|
this.product = product
|
|
this.quantity = quantity
|
|
}
|
|
}
|