arupcse / MyTasks

Task management application.
MIT License
0 stars 0 forks source link

Design database. #2

Open arupcse opened 7 years ago

arupcse commented 7 years ago

User

shimanbb commented 7 years ago

You can apply OOP principle while designing a database. Seek for re-usability, consistency. The design should be manageable, extendable and scalable in the long run. Think about the following:

User
-------------
* Id
- Username
- Password
- IsDeleted
- IsActive
* CreateDate
* UpdateDate
* CreatedBy  (UserId)
* UpdatedBy  (UserId)

Task
-------------
* Id
- Title
- StartDateTime
- EndDateTime
- Assignee (UserId)
- Status (TaskStatusId)
- IsDeleted
* CreateDate
* UpdateDate
* CreatedBy  (UserId)
* UpdatedBy  (UserId)

Status
--------------
* Id
- Name
- Description
- IsDeleted
* CreateDate
* UpdateDate
* CreatedBy  (UserId)
* UpdatedBy  (UserId)