Вы находитесь на странице: 1из 22

Fields/attribute

Table Name s Datatype Key


PK,
tbl_Hostel int_Hostel_Id  int identity(1,1)
Annapoorani int_Inst_Id int FK
txt_Hostel_Name varchar(100)
txt_Hostel_Info varchar(100)
int_Staff_Id int FK
int_Company_Id int FK
txt_Active char(1)

dte_Created_Date datetime
txt_Created_By varchar(20)

dte_Updated_Date datetime
txt_Updated_By varchar(20)
int_Hostel_Enrollment PK,
tbl_HostelEnrollment _Id int identity(1,1)
Lakshmi shrri.A int_Hostel_Id int FK
int_Student_Id int FK

int_Hostel_Room_Id int FK
int_Mess_Id int FK

dte_Check_In datetime

dte_Check_Out datetime
int_Company_Id int FK
txt_Active char(10)
dte_Created_Date datetime
txt_Created_By varchar(20)
dte_Updated_Date datetime
txt_Updated_By varchar(20)

int_Age int

txt_Course varchar(30)
int_Hostel_Facility PK,
tbl_HostelFacility _Id int identity(1,1)
Annapoorani int_Hostel_Id int FK
txt_Charge_Flag char (1)

dbl_Charge_Rate decimal (12,2)


int_Company_Id int
txt_Active char (1) FK

dte_Created_Date datetime 
txt_Created_By varchar (20)

dte_Updated_Date datetime 
txt_Updated_By varchar(20)
txt_Returnable_Fla
g char (1)
int_Facility_Id int FK

int_Facility_name varchar(20)
tbl_Hostel_Room_Facility int_Company_Id int FK
Amirtha txt_Active char(10)
dte_Created_Date datetime
txt_Created_By varchar(20)
dte_Updated_Date datetime

int_Hostel_Room_Faci PK,
lity_Id int identity(1,1)
int_Room_Type_Id int FK
int_Product_Id int
int_Company_Id int FK
txt_Active char (1)
dte_Created_Date datetime
txt_Created_By varchar(20)
dte_Updated_Date datetime
txt_Updated_By varchar(20)
int_Facility_Id int FK

int_Hostel_Room_Id int FK

txt_furniture varchar (15)

int_Room_Type_Id int FK

txt_Intercom varchar (15)

int_Facility_Id int FK
txt_E_Learning_Facilit
y varchar (25)

txt_Type_Of_Accomod
ation varchar (25)

txt_Ironing varchar(15)

txt_News_Paper varchar(15)

txt_laundry varchar(15)

txt_Gym varchar(15)

txt_Outing varchar(15)

PK,
int_Hostel_Facility_Lo identity(1,1),
tbl_HostelFacilityRegister an_Id int identity(1,1)

Anusha int_Hostel_Facility_Id int FK


int_Inst_Id int FK
int_Hostel_Id int FK
int_Student_Id int FK
dte_Loan_Date datetime

dte_Return_Date datetime
dbl_Charges decimal
int_Company_Id int FK
txt_Active char(1)
dte_Created_Date datetime
txt_Created_By varchar(20)
dte_Updated_Date datetime
txt_Updated_By varchar(20)
int_Hostel_Bill_Id int FK

txt_Room_Type_Id int FK
int_Hostel_Room_Faci
lity_Id int FK
PK,
tbl_HostelRoom int_Hostel_Room_Id int identity(1,1)
Aiswaryaa int_Hostel_Id int FK
int_Building_Id int FK
int_Floor_Number int
txt_Room_Number varchar(20)
int_Room_Type_Id int

int_Intercom_Number int
int_Room_Capacity int
dbl_Room_Rate decimal(12,2)

int_Room_Members int

txt_Roomate_Details varchar(100)
int_RoomTHings_Coun
t int
int_Company_Id int FK
txt_Active char(1)
dte_Created_Date datetime
txt_Created_By varchar(20)
dte_Updated_Date datetime
txt_Updated_By varchar(20)
PK,
tbl_RoomType int_Room_Type_Id int identity(1,1)
txt_Room_Type_Descr
Amirtha & Anusha iption varchar (100)

txt_Room_Type_Code varchar (10)


int_Hostel_Id int FK
dbl_Room_Rate decimal (10,2) FK
int_Std_Adults int
txt_Account_Code varchar (100)
int_Company_Id int FK
txt_Active char (1)
dte_Created_Date datetime
txt_Created_By varchar (20)
dte_Updated_Date datetime
txt_Updated_By varchar (20)

int_Hostel_Room_Id int FK

txt_Room_Type_Name varchar (25)


txt_room_Facilities varchar (25)
int_Student_id int FK
int_Inst_Id int FK
int_Staff_Id int FK
int_Hostel_Room_Faci
lity_Id int FK
PK,
tbl_HostelGuest int_Guest_Id int identity(1,1)

Nandhini int_Student_Id int FK


txt_Guest_Name varchar(50)
txt_Guest_Contact varchar(50)

dte_Guest_Date_From datetime
dte_Guest_Date_To datetime
int_Hostel_Id int FK
int_Company_Id int FK
txt_Active char(10) FK
dte_Created_Date datetime
txt_Created_By varchar(20)
dte_Update_Date datetime
txt_Updated_By varchar(20)

int_Staff_Id int FK

int_Hostel_Bill_Id int FK

int_Payment_Amount int FK

int_Hostel_Room_id int FK

int_Hostel_Id int FK

int_Building_Id int FK

int_Room_Type_Id int FK
PK,
tbl_GuestRoom int_Guest_Room_Id int identity(1,1)
txt_Guest_Room_Cod
Aiswaryaa e varchar(50)

int_Guest_Id int FK

txt_Phone_Number varchar(10)
int_Capacity int
int_Company_Id int FK
txt_Active char
dte_Created_Date datetime
txt_Created_By varchar(20)
dte_Updated_Date varchar
txt_Updated_By varchar(20)

int_Roomtype_id int FK

dbl_roomrate decimal
int_Hostel_Payment_I
d int FK

dte_Check_In datetime FK

dte_Check_Out datetime

int_Hostel_Room_Id int FK
PK,
tbl_HostelStaff int_Hostel_Staff_Id int identity(1,1)
Amirtha & Anusha int_Hostel_Id int FK
int_Staff_Id int FK
int_Company_Id int
txt_Active char (1)
dte_Created_Date datetime
txt_Created_By varchar (20)
dte_Updated_Date datetime
txt_Updated_By varchar (20)
int_Inst_Id int FK

int_Attendance_Id int FK
PK,
tbl_Mess_Attendence int_Token_id int identity(1,1)

Anna Poorani int_Students_Count int

dte_Food_Schedule datetime

txt_Mess_info varchar(100)

dte_Mess_Opentime datetime

dte_Mess_Closetime datetime

int_Student_id int FK

txt_Mess_Details varchar(100)
int_Count_perday int
int_Company_Id int FK
txt_Active char(1)
dte_Created_Date datetime
txt_Created_By varchar(20)
dte_Updated_Date datetime
txt_Updated_By varchar(20)
PK,
tbl_Stockroom int_stockroom_Id int identity(1,1)
Amirtha & Anusha int_Hostel_Id int FK

int_Cylinder int

int_groceries int
txt_Active char (1)
dte_Created_Date datetime
txt_Created_By varchar (20)
dte_Updated_Date datetime
txt_Updated_By varchar (20)

PK,
int_Hostel_Payment_I identity(1,1),
tbl_HostelPayment d int identity(1,1)
Anusha int_Hostel_Id int FK
Int_Inst_Id int FK
int_Student_Id int FK
dte_Payment_Date datetime

dbl_Payment_Amount decimal (12,2)

txt_Payment_Number varchar (50)

txt_Paid_By varchar (50)


txt_Pay_Mode varchar (50)
txt_Bank_Ref varchar (50)

dte_Cheque_Date datetime

int_Company_Id int FK
txt_Active char (1)
dte_Created_Date datetime
txt_Created_By varchar (20)
dte_Updated_Date datetime
txt_Updated_By varchar (20)

int_City_Id int FK

int_Hostel_Bill_Id int FK

int_Hostel_Id int FK

int_Mess_Id int FK
int_Hostel_Payment_ PK,
tbl_hostelPaymentDetail Detail_Id int identity(1,1)
int_Hostel_Payment_I
lakshmi shrri.A . d int FK
int_Hostel_Bill_Id int FK

dbl_Payment_Amount decimal(12,2)
int_Company_Id int FK
txt_Active char(10)
dte_Created_Date datetime
txt_Created_By varchar(20)
dte_Updated_date datetime
txt_Updated_By varchar(20)

int_Student_Id int FK

int_Hostel_Id int FK

int_Hostel_Room_Id int FK
int_Mess_Id int FK

int_Inst_Id int FK
int_Hostel_Payment_I
d int FK
PK,
tbl_Hostel_Income int_Hostel_Income_Id int identity(1,1)

Anusha Int_Inst_Id int FK

dbl_Expenditure decimal(12,2)
int_Hostel_Id int FK

dbl_Mess_Bill decimal(12,2)

dbl_Water_Bill decimal(12,2)

dbl_Electricity_Bill decimal(12,2)

dbl_Room_Rent decimal(12,2)
tbl_AdditionalCollectio
ns_Id int FK

dbl_Monthly_Income decimal(12,2)

dbl_Annual_Income decimal(12,2)

dbl_Gain decimal(12,2)

dbl_Tax decimal(12,2)
int_Company_Id int FK
txt_Active char (1)
dte_Created_Date datetime
txt_Created_By varchar (20)
dte_Updated_Date datetime
txt_Updated_By varchar (20)
PK,
tbl_weekday_Setting txt_Biometric_Id char(1) identity(1,1)

Aiswaryaa dte_Leaving_Time datetime

dte_Entering_Time datetime
int_Company_Id int FK
txt_Active char(1)
dte_Created_Date datetime
txt_Created_By varchar(20)
dte_Updated_Date datetime
txt_Updated_By varchar(20)

int_Student_id int FK

tbl_Leave_Setting int_Student_id int FK

Anna Poorani int_Staff_id int FK


dte_Leave_Start datetime

dte_Leave_End datetime

dbl_MessFee_Red decimal(10,2)

txt_Signed char(1)

dbl_Reduced_Amount decimal(10,2)
int_Company_Id int FK
txt_Active char(1)
dte_Created_Date datetime
txt_Created_By varchar(20)
dte_Updated_Date datetime
txt_Updated_By varchar(20)
PK,
tbl_HostelMaintanance int_Inc_id int identity(1,1)
int_Electricity_Produc
Aiswaryaa ed int
int_Food_Requiremen
t int

txt_Room_Details varchar(100)

txt_Approval char(1)

txt_Safety_Measures varchar(100)

txt_Transport_Details varchar(100)

dte_Transport_Timing datetime

int_Hostel_Fee int

int_Rooms_Room_Id int FK
int_Company_Id int FK
txt_Active char(1)
dte_Created_Date datetime
txt_Created_By varchar(20)
dte_Updated_Date datetime
txt_Updated_By varchar(20)

int_Building_Id int FK
int_Hostel_Id varchar(100) FK
Reference Table for
Constraints FK Included / not Justification

not null
not null tbl_Institution
not null
null
not null tbl_Staff
not null tbl_Company
not null

not null
not null

null
null

not null
not null tbl_Hostel
not null tbl_Student

not null tbl_HostelRoom


not null tbl_Mess

check in is not required at the


not null may not be included time of hostel enrollment

check out is not required at the


not null may not be included time of hostel enrollment
not null tbl_Company
not null
not null
not null
null
null

not null <Can be included> To know the age of the student


To know in which course the
not null <Can be included> student is studying

not null
not null  tbl_Hostel
not null

null
not null tbl_Company
not null

not null
not null

null
null

not null
not null  tbl_Facility
To know about the facility in the
not null <can be included> hostel
not null tbl_Company
not null
not null
not null
not null

not null
not null tbl_RoomType
not null
not null tbl_Company
not null
not null
not null
not null
not null
not null tbl_Facility

notnull tbl_HostelRoom <Can be included> To know the hostel room details


To know abou the furnitures
notnull <Can be included> available in the room

not null tbl_RoomType <Can be included> To know about the room type
To know about intercom facility
notnull <Can be included> in the room
To know about the type of
notnull tbl_Facility <Can be included> facilities in the room
To know about the e-learning
notnull <Can be included> facility provided for the student

To know about the type of


accomodation
notnull <Can be included> (Permanent/Temporary)
To know if ironing is required or
notnull <Can be included> not
To know if news paper is
notnull <Can be included> required or not

not null <Can be included> To know about laundry facility

not null <Can be included> To know about the gym facility


To know about the outing
not null <Can be included> facility

not null

not null tbl_HostelFacility


not null tbl_Institution
not null int_Hostel
not null tbl_Student
not null
returen date is not required
null may not be included forhostel facility registry
null
not null tbl_Company
not null
not null
not null
null
null
null tbl_HostelBill
To know about the facility of the
not null tbl_RoomType <Can be included> hostel room

not null tbl_Hostel_Room_Facility <Can be included> To know about intercom facility

not null
null tbl_Hostel
null tbl_Building
null
not null
null tbl_RoomType
To know the detail of the
not null <Can be included> intercom number
not null
null
To know the Details of the room
not null <Can be included> members
To know the Details of the room
not null <Can be included> mates
To know the details of the things
null <Can be included> in the room
not null tbl_Company
not null
not null
not null
null
null

notnull

notnull

notnull
notnull tbl_hostel
notnull tbl_HostelRoom
notnull
notnull
notnull tbl_company
notnull
notnull
notnull
notnull
notnull

notnull tbl_HostelRoom <Can be included> to know the id of hostel room

notnull <Can be included> to knoe the room type


notnull <Can be included> to know all room facilities
notnull tbl_Student <Can be included> to know id of student
notnull tbl_Institution <Can be included> to know institution id
notnull tbl_Staff <Can be included> to know staff id

notnull tbl_HostelRoomFacility <Can be included> to know id of facility in room


not null
student id is not required in
not null tbl_Student may not be included table dealing with guest
not null
not null

not null
not null
not null tbl_Hostel
not null tbl_Company
not null
not null
not null
not null
not null

not null tbl_Staff <Can be included> To Know about the staff details

not null tbl_HostelBill <Can be included> To know about the bill details
To know the amount to be paid
not null tbl_HostelPayment <Can be included> by the guest
To know about the room details
not null tbl_HostelRoom <Can be included> of the guest
To know in which hostel the
not null tbl_Hostel <Can be included> guest is staying
To know in which building the
not null tbl_Building <Can be included> guest is staying

To know about the type of room


not null tbl_RoomType <Can be included> in which the guest is staying

not null <Can be included>

not null <Can be included>

not null tbl_HostelGuest <Can be included> To know about the guest details

not null <Can be included> To know about guest phone no


not null <Can be included>
not null tbl_company <Can be included>
not null <Can be included>
not null <Can be included>
not null <Can be included>
not null <Can be included>
not null <Can be included>

not null tbl_Roomtype <Can be included> To know about the roomtype


To know about roomrate of the
not null <Can be included> guestroom
TO know about the payment
not null tbl_hostelpayment <Can be included> details
To know about the check in
not null tbl_hostelenrollment <Can be included> details

not null <Can be included> To know about check out details

not null tbl_hostelroom <Can be included>

not null
not null tbl_Hostel
not null tbl_Staff
not null
not null
not null
not null
null
null
not null tbl_Institution <Can be included> To know the institution Id

not null tbl_StaffAttendance <Can be included> to know the id of attendence


To kow about the token deails
not null <Can be included> for mess attendance
To know about students count
not null <Can be included> in mess
To know about the mess
not null <Can be included> schedule

To know about duration of the


null <Can be included> students entered in mess
To know about the mess
not null <Can be included> opening time
To know about the mess closing
not null <Can be included> time
To know about the student
not null tbl_Students <Can be included> details

not null <Can be included> To know about the mess details


To know about the count of
not null <Can be included> students per day
not null tbl_Company <Can be included>
not null <Can be included>
not null <Can be included>
not null <Can be included>
null <Can be included>
null <Can be included>

NOTNULL <can be included> to know about id of stock room


NOTNULL tbl_hostel <can be included> to know about te hostel id
to know about number of
NOTNULL <can be included> cylinders in stock room
to know about groceries in stock
NOTNULL <can be included> room
notnull <can be included>
notnull <can be included>
notnull <can be included>
notnull <can be included>
notnull <can be included>

not null
not null tbl_Hostel
not null tbl_Institution
not null tbl_Student
not null

not null

not null
paid by is not required in hostel
null may not be included payment
not null
null

using cheque number, cheque


null may not be included date can be identified

not null tbl_Company


not null
not null
not null
null
null
To describe about the student
not null tbl_City <Can be included> details

not null tbl_HostelBill <Can be included> To know about the bill details

To know the extra information


null tbl_Hostel <Can be included> about the hostel

not null tbl_Mess <Can be included> to know about the mess details

not null

not null tbl_HostelPayment


not null tbl_HostelBill

not null
not null tbl_Company
not null
not null
not null
null
null

To know the ID of the student


not null tbl_Student <Can be included> payee
To know the hostel ID of the
not null tbl_Hostel <Can be included> student
To know the room details of the
not null tbl_hostelRoom <Can be included> student
not null tbl_Mess <Can be included> To know the mess details
To know the institution details
not null tbl_Institution <Can be included> of the student
To know about hostel payment
not null tbl_HostelPayment <can be included> details
To know about the hostel
not null tbl_Hostel <Can be included> income details

To know about the institution


not null tbl_Institution <Can be included> details of the student

To know about the expenditure


not null <Can be included> details of the hostel
not null <Can be included> To know about the hostel details
To know the amount details
not null <Can be included> paid for the mess
To know the amount details
not null <Can be included> paid for water facilities
To know the amount details
not null <Can be included> paid for electricity
To know the rent amount of the
not null <Can be included> room
To know the information about
not null <Can be included> additional charges
To know the monthly income of
not null <Can be included> the hostel
To know the annual income of
not null <Can be included> the hostel
To know the profit amount of
not null <Can be included> the hostel
To know the tax details of the
not null <Can be included> hostel
not null tbl_Company
not null
not null
not null
null
null
To know about the attendance
not null <Can be included> entry
To know abou the entering time
not null <Can be included> of the hostel
to know about the exit time of
not null <Can be included> the hostel
not null tbl_Company <Can be included>
not null <Can be included>
not null <Can be included>
not null <Can be included>
null <Can be included>
null <Can be included>
To know about the student
not null tbl_Students <Can be included> details
To know about the student
not null tbl_students <Can be included> details

not null tbl_Staff <Can be included> To know about the staff details
not null <Can be included> To know when the leave start

not null <Can be included> TO know when the leave end

not null <Can be included> To calculate mess fee reduction


To know whether the leave is
not null <Can be included> permitted or not
To know the total reduction
not null <Can be included> amount of hostel
not null tbl_Company <Can be included>
not null <Can be included>
not null <Can be included>
not null <Can be included>
null <Can be included>
null <Can be included>
To know about the total income
not null <Can be included> of the hostel
To know about the electricity
not null <Can be included> details
To know about the snacks
not null <Can be included> amount

not null <Can be included> To know about the room details


To know about the hostel
not null <Can be included> approval i various fields
To know about dispensary
not null <Can be included> materials
To know about the transport
not null <Can be included> facilities
To know about the transport
not null <Can be included> Timings
To calculate the total hostel
not null <Can be included> mainatnence expense

not null tbl_HostelRoom <Can be included> To know about the room details
not null tbl_Company <Can be included>
not null <Can be included>
not null <Can be included>
not null <Can be included>
null <Can be included>
null <Can be included>
To know about the hostel
not null tbl_Building <Can be included> building
null tbl_Hostel <Can be included> To know about the hostel details

Вам также может понравиться