-
Notifications
You must be signed in to change notification settings - Fork 2
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
Main database structure and seeders #14
Conversation
308a66c
to
b255dca
Compare
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.
Just minor details
$table->string('name', 100); | ||
$table->string('ip', 15)->nullable(); //Just IPv4 | ||
$table->dateTime('last_seen')->nullable(); | ||
$table->boolean('transmitting')->default(false); |
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.
Perhaps it is better to name it as working?
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.
It will renamed to working
$table->float('reflow_gradient'); | ||
$table->float('ramp_up_gradient'); | ||
$table->float('reflow_peak_temp'); | ||
$table->float('reflow_max_time'); |
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.
Since this is measured in seconds it could also be unsigned integer
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.
As I didn't know the possible values for this fields I decided to use floats. But I will make the change for unsigned integers.
b255dca
to
b50885b
Compare
b50885b
to
4d7cad4
Compare
This PR add necessary migrations and seeders for main database structure and database diagram for reference.
Closes #7