Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not showing Tables, Chairs etc. #2

Open
VapidRush opened this issue Apr 13, 2024 · 1 comment
Open

Not showing Tables, Chairs etc. #2

VapidRush opened this issue Apr 13, 2024 · 1 comment

Comments

@VapidRush
Copy link

Hello,
I cam a cross your application and wanted to set it up on my system. unfortunately the tables, chairs etc isnt showing up. Im now sitting at it 2days in a row but cant figure out why it wont show everything.
Do you know what the issue could be? Im running on Ubuntu

Thanks in advance and kind regards.

Screenshot from 2024-04-13 20-48-16

@pfavero-wheregroup
Copy link
Contributor

Hi @VapidRush ,
Sorry for the delay in my reply. I am assuming that with a new database you have some rows in the seat_objs table. Is this correct?

Here I have added some seats and tables as sample data:
https://github.com/pafavero/nextjs_book_a_seat/blob/main/sql/create_db.sql

INSERT INTO book_a_seat.table_objs ("name",x,y,width,height) VALUES
	 ('table 2',49.0,17.0,166.0,38.0),
	 ('table 1',599.0,87.0,46.0,161.0);


INSERT INTO book_a_seat.seat_objs ("name",x,y) VALUES
	 ('chair 3',95.0,56.0),
	 ('chair 4',168.0,55.0),
	 ('chair 1',599.0,219.0),
	 ('chair 2',599.0,111.0);

However, the normal user (example "user0") cannot add tables or seats. Only the administrator can. If you are logged into the application as "admin0", you can add new tables or seats:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants