Yohsta Database Table Documentation

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 21

Yohsta bookkeeping and accounting software

Title: Database requirement & analyzed tables.


1. Users. Hold users’ information.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. User_number Bigint 6 Pk No No
2. Full_name Varchar 100 - No No
3. Email Varchar 100 - No No
4. Phone_no Bigint 10 - No No
5. Branch Bigint 6 Fk Yes Branch
6. Is_active Bigint 2 - No No
7. Super_user Bigint 6 Fk Yes Users
8. Created_by Bigint 6 Fk Yes Users
9. Update_by Bigint 6 Fk Yes Users
10. Created_at Date Default - No No
11. Updated_at Date Default - Yes No
12. Upassword Varchar 255 - No No

2. User_lang. Hold language setting for the specific user.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Lang_number Bigint 6 Pk No No
2. Lang_name Varchar 6 - No No
3. User_number Bigint 6 Fk No Users
4. Created_by Bigint 6 Fk No Users
5. Updated_by Bigint 6 Fk Yes Users
6. Created_at Date Default - No No
7. Updated_at Date Default - Yes No

3. Roles. Hold role name.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Role_number Bigint 6 Pk No No
2. Role_name Varchar 100 - No No
3. Description Text Default - Yes No
4. Super_user Bigint 6 Fk No Users
5. Created_by Bigint 6 Fk No Users
6. Updated_by Bigint 6 Fk Yes Users
7. Created_at Date Default - No No
8. Updated_at Date Default - Yes No
9. Is_active Bigint 2 - No No

1
4. Permissions. Hold permission that allows employees to perform some tasks in the
system.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Perm_number Bigint 6 Pk No No
2. Perm_name Varchar 100 - No No
3. Description Text Default - Yes No
4. Created_by Bigint 6 Fk No Yohsta_users
5. Updated_by Bigint 6 Fk Yes Yohsta_users
6. Created_at Date Default - No No
7. Updated_at Date Default - Yes no
8. Is_active Bigint 2 - No no

5. Role_permissions. Joins the role with permission and privileges.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Role_perm_number Bigint 6 Pk No No
2. Role_number Bigint 6 Fk No Role
3. Perm_number Bigint 6 Fk No Permission
4. Perm_create Bigint 2 - No No
5. Perm_view Bigint 2 - No No
6. Perm_update Bigint 2 - No No
7. Perm_delete Bigint 2 - No No
8. Is_default Bigint 2 - Yes No
9. Super_user Bigint 6 Fk No Users
10. Created_by Bigint 6 Fk No Users
11. Updaed_by Bigint 6 Fk Yes Users
12. Created_at Date Default - No No
13. Updated_at Date Default - Yes No

6. User_role. Holds the role that is assigned to the users.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. User_role_number Bigint 6 Pk No No
2. User Bigint 6 Fk No Users
3. Role_perm Bigint 6 Fk No Role_permission
4. Super_user Bigint 6 Fk No Users
5. Created_by Bigint 6 Fk No Users
6. Updated_by Bigint 6 Fk Yes Users
7. Created_at Date Default - No No
8. Updated_at Date Default - Yes No

2
7. User_log. Hold user login and logout activities.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Login_id Bigint 6 Pk No No
2. User Bigint 6 Fk No Users
3. Login_time Varchar 20 - No No
4. Logout_time Varchar 20 - Yes No
5. User_ip Varchar 60 - No No
6. Platform Varchar 100 - No No
7. Super_user Bigint 6 Fk Yes Users

3
Company/business details module
8. Companies. Hold company information.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Cmp_number Bigint 6 Pk No No
2. Name Varchar 100 - No No
3. Cmp_abbr Varchar 100 - Yes No
4. Email Varchar 100 - Yes No
5. Phone_no Bigint 10 - No No
6. Fax Bigint 12 - Yes No
7. Logo Varchar 100 - Yes No
8. Super_user Bigint 6 Fk No Users
9. Created_by Bigint 6 Fk No Users
10. Updated_by Bigint 6 Fk Yes Users
11. Created_at Date Default - No No
12. Updated_at Date Default - Yes no

9. Address. Hold company address

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Address_number Bigint 6 Pk No No
2. Country Bigint 6 Fk No Country
3. City Varchar 100 - No No
4. Street Varchar 100 - No no
5. company Bigint 6 Fk No Company
6. Branch Bigint 6 Fk Yes Branch
7. Super_user Bigint 6 Fk No Users
8. Created_by Bigint 6 Fk Yes Users
9. Update_by Bigint 6 Fk Yes Users
10. Created_at Date Default - No No
11. Updated_at Date Default - No No

10. Branch. Hold information related to the branch of the company.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Branch_number Bigint 6 Pk No No
2. Branch_name Varchar 100 - No No
3. Branch_abbr Varchar 100 - Yes No
4. company Bigint 6 Fk No Company

4
5. Is_active Bigint 2 - No No
6. Super_user Bigint 6 Fk No Users
7. Created_by Bigint 6 Fk No Users
8. Updated_by Bigint 6 Fk Yes Users
9. Created_at Date Default - No No
10. Updated_at Date Default - Yes No

Product/service module database table


11. Product_unit. Hold different unit measurements that are used to sell and measure
products.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Unit_number Bigint 6 Pk No No
2. Unit_name Varchar 100 - No No
3. Is_active Bigint 2 - No No
4. Super_user Bigint 6 Fk No Users
5. Created_by Bigint 6 Fk No Users
6. Updated_by Bigint 6 Fk Yes Users
7. Created_at Date Default - No No
8. Updated_at Date Default - Yes No

12. Product_category. Hold product category data.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Category_number Bigint 6 Pk No No
2. Category_name Varchar 100 - No No
3. Category_description Text - - Yes No
4. Is_active Bigint 2 - No No
5. Super_user Bigint 6 Fk No Users
6. Created_by Bigint 6 Fk No Users
7. Updated_by Bigint 6 Fk Yes Users
8. Created_at Date Default - No No
9. Updated_at Date Default - Yes No

13. Product. Hold information related to products or services.

sn Attribute Datatype Length Pk/Fk Null Reference Table


1. Product_number Bigint 6 Pk No No
2. Product_name Varchar 100 - No No
3. Cost_price Float Default - No No
4. Unit_price Float Default - No no
5. Product_unit Bigint 6 Fk No Product_unit
6. Category_id Bigint 6 Fk No Product_category

5
7. Description Text Default - Yes No
8. Is_active Bigint 2 - No No
9. Super_user Bigint 6 Fk No Users
10. Created_by Bigint 6 Fk No Users
11. Updated_by Bigint 6 Fk Yes Users
12. Created_at Date 6 - No No
13. Updated_at Date Default - Yes No

Inventory management module database table.

14. Inventory_location. Hold the information of where the inventory is resided.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Location_number Bigint 6 Pk No No
2. Location_name Varchar 100 - No No
3. Description Text Default - Yes No
4. Is_active Bigint 2 - No No
5. Super_user Bigint 6 Fk No Users
6. Created_by Bigint 6 Fk No Users
7. Updated_by Bigint 6 Fk Yes Users
8. Created_at Date Default - No No
9. Update_at Date Default - Yes No

15. Inventory. Store data about business inventory.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Inventory number Bigint 6 Pk No no
2. Product number Bigint 6 Fk No Product
3. Quantity Bigint 100 - No No
4. Reorder_level Bigint 100 - No No
5. Alert_counter Bigint 10 - Yes No
6. Branch Bigint 6 Fk Yes Branch
7. Super_user Bigint 6 Fk No Users
8. Created_by Bigint 6 Fk No Users
9. Updated_by Bigint 6 Fk Yes Users
10. Created_at Date Default - No No
11. Updated_at Date Default - Yes No

16. Inventory_transaction_type. Hold data of transaction type that is used to move and
track inventory e.g. Purchase, sales, return, adjustment or transfer.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table

6
1. Tsn_type_number Bigint 6 Pk No No
2. Tsn__type_name Varchar 100 - No No
3. Is_active Bigint 2 - No No
4. Created_by Bigint 6 Fk No Yohsta_users
5. Update_by Bigint 6 Fk Yes Yohsta_users
6. Created_at Date Default - No No
7. Update_at Date Default - Yes no

17. Inventory_transactions. Tracks movement of inventory within the business accordingly.

Sn Attribute Datatype Length Pk/Fk Null Reference Table


1. Transaction_number Bigint 6 Pk No No
2. Transaction_type Bigint 6 Fk No Inventory_transaction_types
3. Inventory Bigint 6 Fk No Inventory
4. Quantity Integer 100 - No No
5. Transfer_from Bigint 6 Fk No Inventory_locations
6. Transfer_to Bigint 6 Fk No Inventory_locations
7. Sales_order Bigint 6 Fk Yes Sales_orders
8. Sales_return Bigint 6 Fk Yes Sales_returns
9. Branch Bigint 6 Fk Yes Branch
10. Super_user Bigint 6 Fk No Users
11. Created_by Bigint 6 Fk No Users
12. Updated_by Bigint 6 Fk Yes Users
13. Created_at Date Default - No No
14. Updated_at Date Default - Yes Yes

7
People management module database table.

18. Customer. Holds information related to customers.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Cust_number Bigint 6 Pk No No
2. Cust_name Varchar 100 - No No
3. Email Varchar 100 - Yes No
4. Phone_number Integer 10 - No No
5. Address Text Default - Yes No
6. Branch Bigint 6 - Yes Branch
7. Super_user Bigint 6 Fk No Users
8. Created_by Bigint 6 Fk No Users
9. Update_by Bigint 6 Fk Yes Users
10. Created_at Date Default - No No
11. Update_at Date Default - Yes Yes

19. Suppliers. Hold information of vendors who supplier product or service to the business.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. supplier_number Bigint 6 Pk No No
2. supplier_name Varchar 100 - No No
3. Email Varchar 100 - Yes No
4. Phone_number Integer 10 - No No
5. Address Text Default - Yes No
6. Super_user Bigint 6 Fk No Users
7. Created_by Bigint 6 Fk No Users
8. Update_by Bigint 6 Fk Yes Users
9. Created_at Date Default - No No
10. Update_at Date Default - Yes Yes

8
Sales management module database table.
20. Invoice_types. Hold information about the type of invoice.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Inv_type_number Bigint 6 Pk No No
2. Inv_type_name Varchar 100 - No No
3. Inv_type_descr Varchar 100 - Yes No
4. Created_by Bigint 6 Fk No Yohsta_users
5. Updated_by Bigint 6 Fk Yes Yohsta_users
6. Created_at Date Default - No No
7. Updated_at Date Default - Yes No

21. Invoices. Store information about sales orders invoices.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Invoice_number Bigint 6 Pk No No
2. Sales_order Bigint 6 Fk Yes Sale_order
3. Invoice_type Bigint 6 Fk No Invoice_type
4. Branch Bigint 6 Fk Yes Branches
5. Super_user Bigint 6 Fk No Users
6. Created_by Bigint 6 Fk No Users
7. Updated_by Bigint 6 Fk Yes Users
8. Due_date Date Default Fk No No
9. Created_at Date Default - No No
10. Updated_at Date Default - Yes no

22. Invoice_items. Store all items related to invoice.

Sn Attribute Datatype Length Pk/Fk Null Reference Table


1. Item_number Bigint 6 Pk No No

9
2. Invoice Bigint 6 Fk No Invoice
3. Item_desc Bigint 6 Fk No Invoice_descriptions
4. Super_user Bigint 6 Fk No Users
5. Created_by Bigint 6 Fk No Users
6. Updated_by Bigint 6 Fk Yes Users
7. Created_at Date Default - No No
8. Updated_at Date Default - Yes No

23. Invoice_descriptions. Hold information for description about item for other invoices.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Descr_number Bigint 6 Pk No No
2. Invoice_descr Varchar 100 - No No
3. amount Float Default - No No
4. Is_active Bigint 2 - No No
5. Branch Bigint 6 Fk No Branches
6. Super_user Bigint 6 Fk No Users
7. Created_by Bigint 6 Fk No Users
8. Updated_by Bigint 6 Fk Yes Users
9. Created_at Date Default - No No
10. Updated_at Date Default - Yes No

24. Sales_orders. Hold information about sales order.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Order_number Bigint 6 Pk No no
2. Customer Bigint 6 Fk Yes Customers
3. Branch Bigint 6 Fk Yes Branches
4. Super_user Bigint 6 Fk No Users
5. Created_by Bigint 6 Fk No Users
6. Created_at Date Default - No No
7. Updated_by Bigint 6 Fk Yes Users
8. Updated_at Date Default - Yes No

25. Sales_order_items. Hold information of sold item in each sales transaction.

Sn Attribute Datatype Length Pk/Fk Null Reference

10
Table
1. Item_number Bigint 6 Pk No No
2. Sales_order Bigint 6 Fk No Sales_orders
3. Product Bigint 6 Fk No Product
4. Quantity Bigint 100 - No No
5. Unit_price Float Default - No No
6. Cost_price Float Default - No No
7. Branch Bigint 6 Fk No Branches
8. Super_user Bigint 6 Fk No Users
9. Created_by Bigint 6 Fk No Users
10. Updated_by Bigint 6 Fk Yes Users
11. Created_at Date Default - No No
12. Updated_at Date Default - Yes No

26. Sales_returns. Holds the information about the sales order that returned form customer.

Sn Attribute Datatype Length Pk/Fk Null Reference Table


1. Return_number Bigint 6 Pk No No
2. Sales_order Bigint 6 Fk No Sales_orders
3. Reason Bigint 6 Fk No Sales_return_reson
4. Action Bigint 6 Fk No Sales_return_action
5. Return_descr Text Default - Yes No
6. Branch Bigint 6 - No Branches
7. Super_user Bigint 6 Fk No Users
8. Created_by Bigint 6 Fk No Users
9. Updated_by Bigint 6 Fk Yes Users
10. Created_at Date Default - No No
11. Updated_at Date Default - Yes No

27. Sales_return_items. A list of returned item from customer return request.

Sn Attribute Datatype Length Pk/Fk Null Reference Table


1. Item_number Bigint 6 Pk No No
2. Return_number Bigint 6 Fk No Sales_returns
3. Product Bigint 6 Fk No Products
4. Quantity Bigint 100 - No No
5. Item_condition Bigint 6 Fk No Sales_return_condition
6. Branch Bigint 6 Fk No Branches
7. Super_user Bigint 6 Fk No Users
8. Created_by Bigint 6 Fk No Users
9. Updated_by Bigint 6 Fk Yes Users
10. Created_at Date Default - No No
11. Updated_at Date Default - Yes No

11
28. sales_return_action. Indicated the action taken for a specific sales return request e.g.
refund, exchange, replacement etc.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Action_number Bigint 6 Pk No No
2. Action_name Varchar 100 - No No
3. Created_by Bigint 6 Fk No Yohsta_users
4. Updated_by Bigint 6 Fk Yes Yohsta_users
5. Created_at Date Default - No No
6. Updated_at Date Default - Yes No

29. Sales_return_reasons. Hold information for accepted reason for sales return.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Reason_number Bigint 6 Pk No No
2. Reason_name Varchar 255 - No No
3. Created_by Bigint 6 Fk No Yohsta_users
4. Updated_by Bigint 6 Fk Yes Yohsta_users
5. Created_at Date Default - No No
6. Updated_at Date Default - Yes No

30. Sales_return_condition. Hold information about the condintion of the returned item.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Condition_number Bigint 6 Pk No No
2. Condition_name Varchar 100 - No No
3. Created_by Bigint 6 Fk No Yohsta_users
4. Updated_by Bigint 6 Fk Yes Yohsta_users
5. Created_at Date Default - No No
6. Updated_at Date Default - Yes No

31. Transaction. Hold all transaction details related to the business daily payment
transaction e.g. sales, expenses, customer refund, purchase orders payment etc.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table

12
1. Transaction_number Bigint 6 Pk No No
2. Invoice Bigint 6 Fk Yes Invoices
3. Sales_return Bigint 6 Fk Yes Sales_returns
4. Expenses Bigint 6 Fk Yes Expenses
5. Purchase_order Bigint 6 Fk Yes Purchase_orders
6. Currency Bigint 6 Fk No Currencies
7. Discount Float Default - Yes No
8. Debt_amount Float Default - Yes No
9. Paid_amount Float Default - Yes No
10. Balance Float Default - Yes No
11. Transaction_descr Varchar 100 - Yes No
12. Branch Bigint 6 Fk Yes Branches
13. Super_user Bigint 6 Fk No Users
14. Created_by Bigint 6 Fk No Users
15. Created_at Date Default - No No
16. Updated_by Bigint 6 Fk Yes Users
17. Updated_at Date Default - Yes No

Purchase order module database table.


32. Purchase_order. Hold information for the business inventory purchases or any other
purchase that business want to make.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Order_number Bigint 6 Pk No No
2. Supplier Bigint 6 Fk Yes Suppliers
3. Branch Bigint 6 Fk No Branches
4. Super_user Bigint 6 Fk No Users
5. Created_by Bigint 6 Fk No Users
6. Updated_by Bigint 6 Fk Yes Users
7. Arrival_date Date Default - Yes No
8. Due_date Date Default - No No
9. Created_at Date Default - No No
10. Updated_at Date Default - No No

33. Purchase_order_item. Hold all the list of items that a business want to purchase or
order from the vendors.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. item_number Bigint 6 Pk No No
2. Order Bigint 6 Fk Yes Purchase_orders

13
3. Product Bigint 6 Fk No Product
4. Quantity Integer 100 - No No
5. Unit_price Float Default - No No
6. Super_user Bigint 6 Fk No Users
7. Created_by Bigint 6 Fk No Users
8. Updated_by Bigint 6 Fk Yes Users
9. Created_at Date Default - No No
10. Updated_at Date Default - No No

Expenses module database table.

34. Expense_categories. Hold the information for expenses categories types.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Category_number Bigint 6 Pk No No
2. Category_name Varchar 100 - No No
3. Description Text Default - Yes No
4. Super_user Bigint 6 Fk No Users
5. Branch Bigint 6 Fk Yes Branch
6. Created_by Bigint 6 Fk No Users
7. Updated_by Bigint 6 Fk Yes Users
8. Created_at Date Default - No No
9. Updated_at Date Default - Yes No

35. Expenses. Hold information about the expenses that business incur in daily business
operations.

Sn Attribute Datatype Length Pk/Fk Null Reference Table


1. Expense_number Bigint 6 Pk No No
2. Category Bigint 6 Fk No Expense_category

14
3. Super_user Bigint 6 Fk No Users
4. Branch Bigint 6 Fk No no
5. Creted_by Bigint 6 Fk No Users
6. Updated_by Bigint 6 Fk Yes Users
7. Created_at Date Default - No No
8. Updated_at Date Default - Yes No

Subscription payment and user management module database table.


36. Plans. Hold the information of the plan available for subscription.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Plan_number Bigint 6 Pk No No
2. Plan_name Varchar 100 - No no
3. Plan_price Varchar Float - No No
4. Currency Bigint 6 Fk No Currency
5. Billing_cycle Bigint 6 Fk No Billing_cycles
6. Is_active Bigint 2 - No No
7. Created_by Bigint 6 Fk No Yohsta_users
8. Updated_by Bigint 6 Fk Yes Yohsta_users
9. Created_at Date Default - No No
10. Updated_at Date Default - Yes No

37. Billing_cycles. Hold information of time for the plan payment (billing frequency).

Sn Attribute Datatype Length Pk/Fk Null Reference


Table

15
1. Cycle_number Bigint 6 Pk No No
2. Cycle_name Varchar 100 - No No
3. Cycle_duration Integer 100 - No No
4. Created_by Bigint 6 Fk No Yohsta_users
5. Updated_by Bigint 6 Fk Yes Yohsta_users
6. Created_at Date Default - No No
7. Updated_at Date Default - Yes No

38. Plan_features. Hold information about features of the plan.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Features_number Bigint 6 Pk No no
2. Feture_name Varchar 100 - No No
3. Created_by Bigint 6 Fk No Yohsta_users
4. Updated_by Bigint 6 Fk Yes Yohsta_users
5. Created_at Date Default - No No
6. Updated_at Date Default - Yes No

39. Plan_feature_item. Hold list of features related to a specific plan.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Plan_detail_number Bigint 6 Pk No No
2. Plan Bigint 6 Fk No Plans
3. Feature Bigint 6 Fk No Plan_features
4. Created_by Bigint 6 Fk No Yohsta_users
5. Updated_by Bigint 6 Fk Yes Yohsta_users
6. Created_at Date Default - No No
7. Updated_at Date Default - Yes No

40. Subscriptions. Hold information for user and plan they have subscribed.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Subscription_number Bigint 6 Pk No No
2. Subscriber Bigint 6 Fk No Users
3. Plan Bigint 6 Fk No Plans

16
4. Start_date Date Default - No No
5. End_date Date Default - No No
6. Created_by Bigint 6 Fk No Yohsta_users
7. Updated_by Bigint 6 Fk Yes Yohsta_users
8. Created_at Date Default - No no
9. Updated_at Date Default - Yes No

41. Subscription_invoices. Hold the invoice for subscribers.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. invoice_number Bigint 6 Pk No No
2. Subscription Bigint 6 Fk No Subscription
3. Due_date Date Default - No No
4. Invoice_status Bigint 2 - No No
5. Alert_counter Bigint 2 - Yes No
6. Created_by Bigint 6 Fk No Yohsta_users
7. Updated_by Bigint 6 Fk Yes Yohsta_users
8. Created_at Date Default - No no
9. Updated_at Date Default - Yes No

42. Subscription_payments. Hold information about subscription payment.

Sn Attribute Datatyp Length Pk/Fk Null Reference Table


e
1. transaction_number Bigint 6 Pk No No
2. invoice Bigint 6 Fk No Subscription_invoices
3. Currency Bigint 6 Fk No Currency
4. Discount Float Default - Yes No
5. Debit_amount Float Default - No No
6. Paid_amount Float Default - Yes No
7. Balance Float Default - Yes No
8. Created_by Bigint 6 Fk No Yohsta_users
9. Updated_by Bigint 6 Fk Yes Yohsta_users
10. Created_at Date Default - No no
11. Updated_at Date Default - Yes No

17
Global tables.
43. Country. Hold information of country where application allowed to operate

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Country_number Bigint 6 Pk No No
2. Country_name Varchar 255 - No No
3. Nationality Varchar 100 - No No
4. Created_by Bigint 6 Fk No Yohsta_users
5. Updated_by Bigint 6 Fk Yes Yohsta_users
6. Created_at Date Default - No No
7. Updated_at Date Default - Yes no

44. Currencies. Hold currency that allowed in accounting within the system.

Sn Attribute Datatype Length Pk/Fk Null Reference

18
Table
1. Currency_number Bigint 6 Pk No No
2. Currency_name Varchar 255 - No No
3. Currency_code Varchar 100 - No No
4. Is_active Bigint 2 - No No
5. Created_by Bigint 6 Fk No Yohsta_users
6. Updated_by Bigint 6 Fk Yes Yohsta_users
7. Created_at Date Default - No No
8. Updated_at Date Default - Yes no

45. Yohsta_users. Table hold information about administrators of the system.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. User_number Bigint 6 Pk No No
2. First_name Varchar 100 - No No
3. Middle_name Varchar 100 - Yes No
4. Surname Varchar 100 - No No
5. Email Varchar 100 - No No
6. Phone_no Bigint 10 - No No
7. Created_by Bigint 6 Fk Yes Yohsta_users
8. Created_at Date Default - No No
9. Updated_by Bigint 6 Fk Yes Users
10. Updated_at Date Default - Yes No
11. Upassword Varchar 255 - No No

46. Yohsta_roles. Hold the information about the roles of Yohsta system user.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Role_number Bigint 6 Pk No No
2. Role_name Varchar 100 - No No
3. Role_desc Text - - Yes No
4. Is_active Bigint 2 - No No
5. Created_by Bigint 6 Fk Yes Yohsta_users
6. Created_at Date Default - No No
7. Updated_by Bigint 6 Fk Yes Yohsta_users
8. Updated_at Date Default - No No

19
47. Yohsta_permissions. Hold the permission that allow users to perform activities in the
system.

sn Attribute Datatype Length Pk/Fk Null Reference


Table
1. Perm_number Bigint 6 Pk No No
2. Perm_name Varchar 100 - No No
3. Perm_desc Text Default - Yes No
4. Is_active Bigint 2 - No No
5. Created_by Bigint 6 Fk Yes Yohsta_users
6. Created_at Date Default - No No
7. Updated_by Bigint 6 Fk Yes Yohsta_users
8. Updated_at Date Default - Yes No

48. Yohsta_role_permissions. Hold the permission about role and assigned permission
that allow users to perform specific task.

sn Attribute Datatype Length Pk/Fk Null Reference Table


1. Role_perm_number Bigint 6 Pk No No
2. Role Bigint 6 Fk No Yohsta_roles
3. Perm Bigint 6 Fk No Yohsta_permissions
4. Perm_create Bigint 2 - No No
5. Perm_read Bigint 2 - No No
6. Perm_update Bigint 2 - No No
7. Perm_delete Bigint 2 - No No
8. Created_by Bigint 6 Fk Yes Yohsta_users
9. Created_at Date Default - No No
10. Updated_by Bigint 6 Fk Yes Yohsta_users
11. Updated_at Date Default - Yes No

49. Yohsta_user_roles. Hold the roles that user is assigned to and the permission that
associated with that role.

Sn Attribute Datatype Length Pk/Fk Null Reference Table


1. User_role_number Bigint 6 Pk No No
2. User_number Bigint 6 Fk No Yohsta_users
3. Role_perm Bigint 6 Fk No Yohsta_role_permissions
4. Created_by Bigint 6 Fk No Yohsta_users
5. Created_at Date Default - No No
6. Updated_by Bigint 6 Fk Yes Yohsta_users
7. Updated_at Date Default - Yes No

20
50. Yohsta_user_logs. Table record the login history of Yohsta employees.

Sn Attribute Datatype Length Pk/Fk Null Reference


Table
8. Log_number Bigint 6 Pk No No
9. User_number Bigint 6 Fk No Yohsta_users
10. Login_time Varchar 20 - No No
11. Logout_time Varchar 20 - Yes No
12. Ip_address Varchar 100 - No No
13. Platform Varchar 200 - No No

21

You might also like