-便签组编号 -便签组组名 -创建时间 -修改时间 -删除时间
create table if not exists note_groups( id int primary key auto_increment comment'便签组编号', group_name varchar(20) not null unique comment'便签组名称', create_date datatime comment'创建时间’, modify_date timestamp comment'修改时间', delete_data datatime comment'删除时间' );-便签编号 —便签标题 -内容 -是否私密 -背景颜色 —是否提醒 -是否删除 -提醒时间 创建时间 -修改时间 -删除时间 -便签组编号
create table if not exists note_mark( id int primary key auto_increment commentt‘便签编号’, title varchar(20) not null commentt'便签标题', content varchar(1000) commentt'内容', is_secret boolean commentt'是否私密,0表示公开,1表示私密', background enum('red','white','blue','black') comment'背景颜色', is_remind boolean comment'是否提醒', is_delete char(1) default '0' comment'是否删除,0表示未删除,1表示删除', remind_data datatime comment'提醒时间', create_date datatime comment'创建时间', modify_date timestamp comment'修改时间', delete_data datatime comment'删除时间', group_id int not null comment'便签组编号', foreign key (group_id) references note_groups(id) );