Migration system added.

Install scripts for database schema and dummy data too.
This commit is contained in:
2022-02-26 22:23:30 +10:00
parent 6439b4326c
commit 207edf0de3
122 changed files with 774 additions and 148 deletions

View File

@@ -10,7 +10,7 @@ interface order {
interface orderItem {
id: number
qty: number
print_group: print_group
print_group_id: print_group
item: item
cover: number
}
@@ -18,7 +18,7 @@ interface orderItem {
interface print_group {
id: number,
name: string,
printer: number,
printer_id: number,
venue_id: number,
}
@@ -50,21 +50,21 @@ interface floorplan_table {
id: number
}
interface decoration {
interface floorplan_decoration {
id: number
decoration_room: number
decoration_pos_x: number
decoration_pos_y: number
decoration_rotation: number
decoration_width: number
decoration_height: number
decoration_image: string
room_id: number
pos_x: number
pos_y: number
rotation: number
width: number
height: number
image: string
venue_id: number
}
interface room {
id: number
room_name: string
name: string
background_image: string
venue_id: number
}
@@ -87,26 +87,22 @@ interface keyboard {
}
interface order_screen_page{id: number; order_screen_page_group_id: number; grid_id: number}
interface grid {id: number; grid_name: string; grid_rows: number; grid_cols: number; grid_data: string}
interface grid {id: number; name: string; rows: number; cols: number; data: string}
interface item {
id: number
item_code: string
item_category: number
item_name: string
code: string
category: number
name: string
item_type: string
price1: number
price2: number
price3: number
price4: number
price5: number
}
type sales_category = {
id: number
parent: number
name: string
print_group: string
print_group_id: string
venue_id: number
}