Database design 谷歌日历提醒的提醒数据模型

Database design 谷歌日历提醒的提醒数据模型,database-design,data-modeling,Database Design,Data Modeling,我正在尝试谷歌提醒的数据模型 表1:- reminder_id subject note next_due_date status created_date reminder_id repeat_type interval start_date end_date on_sunday on_monday on_tuesday on_wednesday on_thursday on_friday on_saturday on_day on_day_week 重复型 -------------

我正在尝试谷歌提醒的数据模型

表1:-

reminder_id
subject
note
next_due_date
status
created_date
reminder_id
repeat_type
interval
start_date
end_date
on_sunday
on_monday
on_tuesday
on_wednesday
on_thursday
on_friday
on_saturday
on_day
on_day_week
重复型

----------------
Type | Name
----------------
O | Once
D | Daily
W | Weekly
M | Monthly
Y | Yearly 
----------------
表2:-

reminder_id
subject
note
next_due_date
status
created_date
reminder_id
repeat_type
interval
start_date
end_date
on_sunday
on_monday
on_tuesday
on_wednesday
on_thursday
on_friday
on_saturday
on_day
on_day_week
提醒

文件:-

reminder_id
subject
note
next_due_date
status
created_date
reminder_id
repeat_type
interval
start_date
end_date
on_sunday
on_monday
on_tuesday
on_wednesday
on_thursday
on_friday
on_saturday
on_day
on_day_week
我们有一个屏幕供用户根据提示进行操作,用户应该更新状态。 当用户将状态更新为完成时,“状态”字段将更新为完成,对于重复,系统将计算下一个到期日并进行更新。“下一个到期日”将有助于我们在屏幕上显示当天的提醒。所以,我们可以很容易地查询

表3:-

reminder_id
subject
note
next_due_date
status
created_date
reminder_id
repeat_type
interval
start_date
end_date
on_sunday
on_monday
on_tuesday
on_wednesday
on_thursday
on_friday
on_saturday
on_day
on_day_week
提醒你重复一遍

文件:-

reminder_id
subject
note
next_due_date
status
created_date
reminder_id
repeat_type
interval
start_date
end_date
on_sunday
on_monday
on_tuesday
on_wednesday
on_thursday
on_friday
on_saturday
on_day
on_day_week
这里,

“间隔”用于存储重复的间隔。默认值为1。 这将是有用的,如果重复是每3天或每2周或每3个月

“on_sunday”至“on_saturday”字段对于特定日期的每周提醒非常有用

“on_day”字段用于捕获每月提醒的当月日期。 “一周一天”是指第一周、第二周,。。每月提醒的当月最后一周

有没有其他更好的方法来储存这个