-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
NEW resource improvements - data structure #26285
Conversation
This reverts commit c17d144.
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; |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
NEW Resource improvements - data structure
SQL part of #26230