feat(model): add initial entity models for restaurant system
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
package dev.model;
|
||||||
|
|
||||||
|
public class MenuItem {
|
||||||
|
|
||||||
|
private int id;
|
||||||
|
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
private double price;
|
||||||
|
|
||||||
|
private String category;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package dev.model;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
public class Order {
|
||||||
|
|
||||||
|
private int id;
|
||||||
|
|
||||||
|
private int userId;
|
||||||
|
|
||||||
|
private LocalDateTime createdAt;
|
||||||
|
|
||||||
|
private double totalPrice;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package dev.model;
|
||||||
|
|
||||||
|
public class OrderDetail {
|
||||||
|
|
||||||
|
private int id;
|
||||||
|
|
||||||
|
private int orderId;
|
||||||
|
|
||||||
|
private int menuItemId;
|
||||||
|
|
||||||
|
private int quantity;
|
||||||
|
|
||||||
|
private double price;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package dev.model;
|
||||||
|
|
||||||
|
public class User {
|
||||||
|
|
||||||
|
private int id;
|
||||||
|
|
||||||
|
private String username;
|
||||||
|
|
||||||
|
private String password;
|
||||||
|
|
||||||
|
private String email;
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user