Skip to content

Instantly share code, notes, and snippets.

@tera-ny
Last active October 4, 2019 01:54
Show Gist options
  • Save tera-ny/9204fbc6dbde55e2e920941ce4250d7a to your computer and use it in GitHub Desktop.
Save tera-ny/9204fbc6dbde55e2e920941ce4250d7a to your computer and use it in GitHub Desktop.
FoodTicketEntity(仮)
@startuml
class User {
id: String
}
class Shop {
name: String
imageID: String
bussinessHours: BussinessHours
owner: User
products: <String: [Product]>
}
class BussinessHours {
hours: <String: (Date, Date)>
}
class Product {
name: String
price: Int
orderLimit: Int?
allUsersOrderLimit: Int?
}
class Order {
product: Product
count: Int
}
class Orders {
user: User
orders: Order[]
}
User<-Shop
User<-Orders
Order<-*Orders
Product<-Order
Product<-*Shop
BussinessHours<-Shop
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment