r/DatabaseHelp • • Dec 13 '18

Database design for event duration logging

I am planning on deploying a MariaDB to log duration of events. First event will be my internet connection outage. So basically logging how long it it disconnected. Later on I will implement more. What might be best plan for implementing this and preparing for the future needs at the same time?

Initially I was thinking something like:

Time table
  - Id
  - Time
EventType table
  - Id
  - Type
EventLog table
  - Id
  - Status (Up/Down)
  - Comment

Is this a good plan? How should I make the relations? Any other things I might have missed?

1 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/Kamsiinov Dec 14 '18

Thanks for both. I think I will go without the time table.