[go: up one dir, main page]

0% found this document useful (0 votes)
26 views7 pages

SSQL

The document provides a complete data dictionary in table format for a database, detailing various entities such as Customers, CustomerAddresses, Staff, and Loans. Each entity includes attributes, data types, primary/foreign key designations, constraints, and business rules. Key attributes include CustomerID, LoanID, and PaymentPlanID, with specific constraints like credit scores and associations between entities.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views7 pages

SSQL

The document provides a complete data dictionary in table format for a database, detailing various entities such as Customers, CustomerAddresses, Staff, and Loans. Each entity includes attributes, data types, primary/foreign key designations, constraints, and business rules. Key attributes include CustomerID, LoanID, and PaymentPlanID, with specific constraints like credit scores and associations between entities.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Here is the comp

No category Today 16:17

Here is the complete data dictionary in a


table format, without length specifications
for fixed-length data types like `int`:

_Customers_

| Attribute | Data Type | PK/FK | Constraints |


Business Rule |
| --- | --- | --- | --- | --- |
| CustomerID | int | PK | Unique | |
| Name | varchar | | | |
| DateOfBirth | date | | | |
| CreditScore | int | | 0-999 | Credit score
must be between 0 and 999 |
| EmploymentStatus | varchar | | | |
| Income | decimal | | | |

_CustomerAddresses_

| Attribute | Data Type | PK/FK | Constraints |


Business Rule |
| --- | --- | --- | --- | --- |
| AddressID | int | PK | Unique | |
| CustomerID | int | FK | References
Customers(CustomerID) | Address must be
associated with a customer |
| Street | varchar | | | |
| City | varchar | | | |
| State | varchar | | | |
| ZIP | varchar | | | |
_Staff_

| Attribute | Data Type | PK/FK | Constraints |


Business Rule |
| --- | --- | --- | --- | --- |
| StaffID | int | PK | Unique | |
| Name | varchar | | | |
| Role | varchar | | | Staff member must
have a role |
| Department | varchar | | | Staff member
must have a department |

_StaffContacts_

| Attribute | Data Type | PK/FK | Constraints |


Business Rule |
| --- | --- | --- | --- | --- |
| ContactID | int | PK | Unique | |
| StaffID | int | FK | References Staff(StaffID)
| Contact must be associated with a staff
member |
| Phone | varchar | | | |
| Email | varchar | | | |
| Fax | varchar | | | |

_CoSigners_

| Attribute | Data Type | PK/FK | Constraints |


Business Rule |
| --- | --- | --- | --- | --- |
| CoSignerID | int | PK | Unique | |
| Name | varchar | | | |
| Address | varchar | | | |
| RelationshipToCustomer | varchar | | | |
| CreditScore | int | | 0-999 | Credit score
must be between 0 and 999 |
| CustomerID | int | FK | References
Customers(CustomerID) | Co-signer must
be associated with a customer |

_Loans_

| Attribute | Data Type | PK/FK | Constraints |


Business Rule |
| --- | --- | --- | --- | --- |
| LoanID | int | PK | Unique | |
| CustomerID | int | FK | References
Customers(CustomerID) | Loan must be
associated with a customer |
| LoanAmount | decimal | | | |
| LoanTerm | int | | | |
| InterestRate | decimal | | | |

_PaymentPlans_

| Attribute | Data Type | PK/FK | Constraints |


Business Rule |
| --- | --- | --- | --- | --- |
| PaymentPlanID | int | PK | Unique | |
| LoanID | int | FK | References
Loans(LoanID) | Payment plan must be
associated with a loan |
| PaymentFrequency | varchar | | | |
| PaymentAmount | decimal | | | |

_LoanPayments_

| Attribute | Data Type | PK/FK | Constraints |


Business Rule |
| --- | --- | --- | --- | --- |
| PaymentID | int | PK | Unique | |
| PaymentPlanID | int | FK | References
PaymentPlans(PaymentPlanID) | Loan
payment must be associated with a
payment plan |
| PaymentDate | date | | | |
| PaymentAmount | decimal | | | |
| PaymentStatus | varchar | | | |

Let me know if this is what you needed!

You might also like