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

NEW resource improvements - data structure #26285

Merged

Conversation

W1W1-M
Copy link
Contributor

@W1W1-M W1W1-M commented Oct 20, 2023

NEW Resource improvements - data structure

SQL part of #26230

ALTER TABLE llx_resource ADD COLUMN zip varchar(25) DEFAULT NULL AFTER address;
ALTER TABLE llx_resource ADD COLUMN town varchar(50) DEFAULT NULL AFTER zip;
ALTER TABLE llx_resource ADD COLUMN photo_filename varchar(255) DEFAULT NULL AFTER town;
ALTER TABLE llx_resource ADD COLUMN user_places integer DEFAULT NULL AFTER photo_filename;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whatvis user_places field. Can you provide example of valus ?

Copy link
Contributor Author

@W1W1-M W1W1-M Oct 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whatvis user_places field. Can you provide example of valus ?

A resource could be various things : room, venue, vehicle, tool, machine, etc, so it must remain generic.
However a resource in many cases will be used by a human, examples :

  • Room: maximum number of people it can sit: 50
  • Venue: maximum number of people it can hold: 250
  • Vehicle: number of seats: 5
  • Tool: number of simultaneous users: 1
  • Machine: number of operators: 3

In some cases a resource might not have any human users or this field is not important, in that case the value would be 0 or NULL.
Maybe the name of this field could be something else like user_seats, max_users or max_places

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So i suggest "max_users" width a default NULL

@eldy eldy added the Discussion Some questions or discussions are opened and wait answers of author or other people to be processed label Oct 20, 2023
@eldy eldy merged commit a4dd36d into Dolibarr:develop Oct 20, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Some questions or discussions are opened and wait answers of author or other people to be processed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants