Vous êtes sur la page 1sur 7

DATABASE DESIGN

Table 1
Name of the table : tbl_wards
Description : To store the ward details
Primary Key : ward_id
Foreign Key : Null

Sl.No Field Datatype Description


1. ward_id Int(11)
2. ward_name Varchar(45)

Table 2
Name of the table : tbl_wardarea
Description : To store the ward area details
Primary Key : wardarea_id
Foreign Key : ward_id

Sl.No Field Datatype Description


1. wardarea_id Int(11)
2. ward_id Int(11)
3. wardarea_name Varchar(45)

Table 3
Name of the table : tbl_membes
Description : To store member details
Primary Key : member_id
Foreign Key : Null

Sl.No Field Datatype Description


1. member_id Int(11)
2. member_name Int(11)
3. member_address Varchar(45)
4. member_phone Varchar(10)
5. member_gender Int
6. member_email Varchar(45)
7. member_dob Date
8. member_qualification Varchar(45)
9. member_occupation Varchar(45)
10. member_username Varchar(45)
11. member_password Varchar(45)
12 member_dateofjoin DateTime
Table 4
Name of the table : tbl_wardmembers
Description : To store member details ward wise
Primary Key : ward_memberid
Foreign Key : ward_id, member_id

Sl.No Field Datatype Description


1. ward_memberid Int(11)
2. ward_id Int(11)
3. member_id Int(11)
4. wardmember_syear Varchar(10)
5. wardmember_eyear Varchar(10)

Table 5
Name of the table : tbl_admin
Description : To store admin details
Primary Key : admin_id
Foreign Key : Null

Sl.No Field Datatype Description


1. admin_id Int(11)
2. admin_name Int(11)
3. admin_address Varchar(45)
4. admin_gender Int
5. admin_dob Date
6. admin_phone Varchar(10)
7. admin_email Varchar(45)
8. admin_username Varchar(45)
9. admin_password Varchar(45)

Table 6
Name of the table : tbl_buildings
Description : To store the building details
Primary Key : building_id
Foreign Key : category_id

Sl.No Field Datatype Description


1. building_id Int(11)
2. building_reg_no Varchar(45)
3. building_name Varchar(45)
4. building_phone Varchar(45)
5. building_email Varchar(45)
6. wardarea_id Int(11)
7. building _auth_person Varchar(45)
8. building _auth_email Varchar(45)
9. building _auth_phone Varchar(10)
10. building_reg_date Date
11. category_id Int(11)

Table 7
Name of the table : tbl_category
Description : To store the category details
Primary Key : category _id
Foreign Key : Null

Sl.No Field Datatype Description


1. category_id Int(11)
2. category_name Varchar(45)

Table 8
Name of the table : tbl_schemecategory
Description : To store the scheme details according to category
Primary Key : schema _id
Foreign Key : Null

Sl.No Field Datatype Description


1. scheme_id Int(11)
2. scheme_name Varchar(45)
3. scheme_sdate Date
4. scheme_edate Date
5. scheme_category Varchar(10)
6. scheme_number Int(11)
7. scheme_amount Double

Table 9
Name of the table : tbl_schemeDocuments
Description : To store the document details according to schemes
Primary Key : schemedoc _id
Foreign Key : scheme_id

Sl.No Field Datatype Description


1. schemedoc_id Int(11)
2. schemedoc_name Varchar(45)
3. scheme_id Int(11)
Table 10
Name of the table : tbl_schemeplaner
Description : To store the plan details according to area and schemes
Primary Key : schemplaner _id
Foreign Key : scheme_id, wardarea_id

Sl.No Field Datatype Description


1. schemplaner _id Int(11)
2. scheme_id Int(11)
3. wardarea_id Int(11)
4. applicableperson varchar(45)
5. application_id Int(11)

Table 11
Name of the table : tbl_payment
Description : To store the payment made on schemes
Primary Key : payment _id
Foreign Key : Null

Sl.No Field Datatype Description


1. payment _id Int(11)
2. scheme_person_id varchar(45)
3. description varchar(45)

Table 12
Name of the table : tbl_membes
Description : To store user details
Primary Key : user_id
Foreign Key : Null

Sl.No Field Datatype Description


1. user_id Int(11)
2. user_name Int(11)
3. user_address Varchar(45)
4. user_phone Varchar(10)
5. user_gender Int
6. user_email Varchar(45)
7. user_dob Date
8. user_occupation Varchar(45)
9. wardarea_id Int(11)
10. user_idtype Varchar(45)
11. user_idnumber Varchar(45)
12 user_houseno Varchar(45)
Table 13
Name of the table : tbl_tenders
Description : To store tender details
Primary Key : tender_id
Foreign Key : wardarea_id

Sl.No Field Datatype Description


1. tender_id Int(11)
2. tender_applicatn_id Int(11)
3. tender_name varchar(45)
4. tender_sdate Date
5. tender_edate Date
6. tender_amt Double
7. wardarea_id Int(11)

Table 14
Name of the table : tbl_applications
Description : To store different application details
Primary Key : application_id
Foreign Key : schme_id

Sl.No Field Datatype Description


1. application_id Int(11)
2. application_date Date
3. application_type Int(11)
4. application _idnumber Varchar(45)
5. schme_id Int(11)
6. application_num Int(11)
7. application_status Int

Table 15
Name of the table : tbl_tenderApplctn
Description : To store different application processed on tenders
Primary Key : tenderApp_id
Foreign Key : Null

Sl.No Field Datatype Description


1. tenderApp_id Int(11)
2. tenderApp_number Int(11)
3. tenderApp_name Varchar(45)
4. tenderApp_address Varchar(45)
5. tenderApp_Category Varchar(45)
6. tenderApp_phone Varchar(10)
7. tenderApp_email Varchar(45)
8. tenderApp_status Varchar(45)

Table 16
Name of the table : tbl_news
Description : To store news details
Primary Key : news_id
Foreign Key : Null

Sl.No Field Datatype Description


1. news_id Int(11)
2. news_caption Varchar(45)
3. news_matter Varchar(Max)
4. news_pstat Int
5. news_date Date

Table 17
Name of the table : tbl_notificatiom
Description : To store notification details
Primary Key : notification_id
Foreign Key : ward_id

Sl.No Field Datatype Description


1. notification _id Int(11)
2. notification_matter Varchar(45)
3. ward_id Int(11)

Table 18
Name of the table : tbl_tendercategory
Description : To store tender category details
Primary Key : tendercategory_id
Foreign Key : Null

Sl.No Field Datatype Description


1. tendercategory _id Int(11)
2. tendercategory_name Varchar(45)
Table 19
Name of the table : tbl_notices
Description : To store notice details
Primary Key : notice_id
Foreign Key : Null

Sl.No Field Datatype Description


1. notice_id Int(11)
2. notice_caption Varchar(45)
3. notice_matter Varchar(45)
4. notice_date Date

Table 20
Name of the table : tbl_tenderAppRegistration
Description : To store tender registration details
Primary Key : notice_id
Foreign Key : Null

Sl.No Field Datatype Description


1. contractor_id Int(11)
2. contractor _email Varchar(45)
3. contractor _phone Varchar(45)
4. contractor _company Varchar(45)
5. contractor _regno Varchar(45)
6. contractor _address Varchar(45)
7. contractor _type Varchar(45)
8. Contractor_city Varchar(45)
9. Contractor_state Varchar(45)
10. Contractor_pin Varchar(45)
12. Establishment_year Varchar(10)
13. Business_Nature Varchar(45)
14. Company_Category Varchar(45) Jointventer,partnership,

Table 21
Name of the table : tbl_reports
Description : To store different report details
Primary Key : report_id
Foreign Key : null

Sl.No Field Datatype Description


1. report_id Int(11)
2. payment_id Varchar(45)
3. description Varchar(45)

Vous aimerez peut-être aussi