My intentions to design the database schema for the small pet vaccination application.
Inside Pet table I want to store details about the pets and if specific vaccination is required.
There are 3-4 vaccination types(VT1, VT2, Vt3, VT4), which is stored inside Vaccine_Type table.
For each vaccination type there are vaccines from various vendors, so I decided to store that information inside Vaccine table.
Vaccination details are stored inside associative table - Vaccination.
Inside which I have: pet_id, vaccination_type, vaccine_id, veterinarian_id, vaccination_date and expiation_date, if expiration date is over active field is set to False, indicating that vaccination is no more active and requires new vaccination.
Kindly advise how can link this information into Pet table, to show which vaccination Type requires revaccination.
And advice if the database schema is correct , or could be optimized more.

Vaccination Database design ERD
442 views Asked by ussrback At
1
There are 1 answers
Related Questions in DATABASE
- How to add the dynamic new rows from my registration form in my database?
- How to store a date/time in sqlite (or something similar to a date)
- Problem with add new attribute in table with BOTO3 on python
- When an E-R attribute should be perceived as a relationship attribute or as an entity set attribute?
- SQLAlchemy: efficient relationship loading in 3-way many-to-many relationship
- Cannot connect to Postgres Database when running Quarkus Tests with Gitlab ci
- Local or remote database with react-native?
- I want to edit a specific row in database
- How to enter data in mongodb array at specific position such that if there is only 2 data in array and I want to insert at 5, then rest data is null
- Open Web Library
- database login.py and register.py error showing 404 file not found and doesn't work
- SQL71561: SqlComputedColumn: When column selected
- Liquibase as SaaS To Configure Multiple Database as Dynamic
- Updated max input vars but table still shows error
- Spring does not map set of roles
Related Questions in DATABASE-DESIGN
- SQL schema for a fill-in-the-blank exercise
- When an E-R attribute should be perceived as a relationship attribute or as an entity set attribute?
- steps to create a web app with backend and database and web
- Use data type uuid or varchar(36) for my UUID column?
- Containing Object Design
- Many-to-many relationship between objects of the same type
- When hashing an API key, should I hash the suffix / prefix as well?
- Database design, authentication and authorization in a microservices ticketing system
- Unique index on 3 columns where NULL conflicts with all other values in one column
- Can i create a table with 2 foreign keys? These 2 foreign keys are 2 primary keys of 2 different tables
- I have a basic ms access question about a relationship between 3 tables
- how can i calculate mutual friends/followers efficiently?
- Access Table ,setting in design ,column 'Catagory' as Combobox in lookup with list "Action";"War";"Drama". in vb.net DGV and Detail how to multiselct
- Table Design for Calculating Median Over User-Defined Period from Pre-Processed Data
- Use conditional constraint or normalize table?
Related Questions in RELATIONAL-DATABASE
- Creating Relationship Creates Additional Columns in MySQL Workbench
- normalize table up to BCNF?
- Handling relationships with React Query
- Entity Core Framework - what is the difference between HasColumnType and HasPrecision?
- Calculating the sum of differences between two columns in Laravel
- Django - Create a model that holds aggregated Foreign Key values
- Database design for social media app: Handling multiple post types and timeline creation performance
- SQL Database Table relation based on multiple conditions
- NextJS Prisma and MongoDB relation
- Repeat the foreign keys or use two tables related as a one-to-one
- Finding items that match multiple LIKE keywords
- How should I structure my entities and not get the circular reference problem/error?
- How does MySQL compute keys for underlying tree structure
- How to write query for a condition on join table
- `"Key "0" in object with ArrayAccess of class does not exist` error after change of computer
Related Questions in ERD
- Moodle Database - Reverse Engineering ERD
- An associative Entity with optional participation on one side and mandatory participation on the other
- ER diagroms Composite Key representation in m;n relationship
- How to specify relation based on a condition in Entity Relationship Diagram (ERD)?
- Is there any identifying or non-Identifying relationship in this ERD?
- Which Lucidchart license is required for import data to directly get metadata from database to create ERD?
- erd diagram Car buying and selling website
- is it allowed to leave an attribute empty in the Entity–relationship model?
- One to many relationship in Product Ordering System with Crow's Foot Notation
- Can an Identifying relationship be one-to-one?
- How to model a complex relationship involving a Weak Entity and entities related to its parents?
- Mermaid Entity-Relationship diagram in top-down layout
- Relations between entities in ER diagram: can they have a key?
- Total Disjoint vs U-type in EERD
- Do Entity-Relationship diagrams need attributes to represent relationships?
Related Questions in DATABASE-RELATIONS
- Database relationship PK table to PK, FK table
- In Laravel can i create oneToMany relation with junction table instead of belongsToMany?
- how to fix the error 'relation "table" does not exist' while creating a db using docker in .net
- Spring JPA adding a collection of entity to many-to-many entity
- Spring Hibernate: Unable to find entity with Id even data available in the database (Only in one to many relationship)
- How to relate two tables in power bi with no common fields
- SQL schema - relationship between tables question
- POST database relation in strapi
- Is there a way to make the 'One' table optional in OneToManyRelationship in Django
- Cannot access reference from inverse side of a 1:1 relationship
- Vaccination Database design ERD
- Creating database in SQL Server (problem with relationships)
- Unable to determine the relationship represented by navigation 'Customer.BoughtProducts' of type 'ICollection<Product>'
- knex.js migrations create tables with relationship between each other fails
- Eager loading of data (Page->PageContent->Documents) in Yii2
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
I would modify a little bit.
When you want to check if a pet has any expired vaccinations, do the following:
As a general concept, store data in the database. Anything that requires to be calculated does not go in a field, it goes in the application, using the data in the database.
Another concept, do not link things that can be derived from other links. This respects the normal forms.
So:
Legend:
Notes: