zoukankan      html  css  js  c++  java
  • 设计BBS

    功能分析:
    1 登陆功能(基于ajax,图片验证码)
    2 注册功能(基于ajax,基于forms验证)
    3 博客首页
    4 个人站点
    5 文章详情
    6 点赞,点踩
    7 评论
    --根评论
    --子评论
    8 后台管理
    --文章展示
    9 发布文章
    --富文本编辑器
    --防止xss攻击


    UserInfo(AbstractUser)
    nid
    telephone
    avator
    blog
    create_date



    Blog:站点表
    nid
    title
    theme



    Category
    nid
    title
    //user:跟user一对多
    blog:跟Blog一对多 这个分类属于哪个站点
    //article:跟article 一对多




    Tag:
    nid
    title
    //user:跟user一对多
    blog:跟Blog一对多 这个标签属于哪个站点
    //article:跟article 多对多

    Article2Tag: 中间表

    Article
    nid
    title
    desc:摘要
    content:内容
    creat_date:

    user:跟user一对多

    category:跟Category一对多

    tag:跟Tag多对多



    ArticleUpDown
    nid
    user:跟user一对多
    article:跟article一对多
    is_up


    nid user article is_up
    1 1 1 1
    2 1 2 0
    3 2 1 1


    Commnent:
    nid
    user:跟user一对多
    article:跟article一对多
    content:
    create_date

    parent_id:自管联

    1111
    3333
    4444
    2222

    nid user article content parent_id
    1 1 1 1111 null
    2 2 1 2222 null
    3 1 1 3333 1
    4 2 1 4444 3

    
    
  • 相关阅读:
    JSP/Servlet相关
    mysql 相关问题解决
    Git常用
    利用JDBC连接MySQL并使用MySQL
    memcache、redis原理对比
    Python 2.7.x 和 3.x 版本的重要区别
    python 单例模式
    python 装饰器原理及用法
    python 冒泡排序
    python 迭代器和生成器
  • 原文地址:https://www.cnblogs.com/luck-L/p/9677518.html
Copyright © 2011-2022 走看看