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

Main database structure and seeders #14

Merged
merged 2 commits into from
Sep 6, 2023

Conversation

rick-astral-cat
Copy link
Collaborator

This PR add necessary migrations and seeders for main database structure and database diagram for reference.

Closes #7

@rick-astral-cat rick-astral-cat force-pushed the main_database_structure_and_seeders branch 2 times, most recently from 308a66c to b255dca Compare September 6, 2023 02:42
Copy link
Member

@crazybolillo crazybolillo left a 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);
Copy link
Member

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?

Copy link
Collaborator Author

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');
Copy link
Member

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

Copy link
Collaborator Author

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.

@rick-astral-cat rick-astral-cat force-pushed the main_database_structure_and_seeders branch from b255dca to b50885b Compare September 6, 2023 03:12
@rick-astral-cat rick-astral-cat force-pushed the main_database_structure_and_seeders branch from b50885b to 4d7cad4 Compare September 6, 2023 03:20
@crazybolillo crazybolillo merged commit 8b86620 into main Sep 6, 2023
@crazybolillo crazybolillo deleted the main_database_structure_and_seeders branch September 6, 2023 03:37
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

Successfully merging this pull request may close these issues.

Database relational diagram to repository
2 participants