database schema for timesheet

前端 未结 5 1891
青春惊慌失措
青春惊慌失措 2021-02-02 03:17

Could someone help me with a rough database schema for a timesheet application where the i would be able to

  1. Store hours per day for a time period ( 2 weeks ) fo

5条回答
  •  礼貌的吻别
    2021-02-02 03:46

    Sounds a bit like homework, but I'd probably start with something like this:

    People 
      - PersonID (PK)
      - PersonName
      - Other fields
    
    Projects
      - ProjectID (PK)
      - ProjectName
      - Other fields
    
    WorkTime
      - TimeID (PK)
      - ProjectID (FK)
      - PersonID (FK)
      - StartTime
      - EndTime
    

提交回复
热议问题