Giter VIP home page Giter VIP logo

Comments (6)

TIGERB avatar TIGERB commented on May 22, 2024
  1. staff_id 对应的是哪个员工;role_setauth_role.id,给员工关联上角色。
  2. 不建议使用text类型,不代表不能用。现在这是个相当于后台系统的表,没有很大的数据量和请求量,所以该场景下可以使用。
  3. staff_infoemailphone是冗余的设计,不建议去掉,因为staff_infoemail是员工的企业邮箱;account_useremail是企业下互联网应用的账号注册时的邮箱或绑定的个人邮箱;phone同样的道理,员工的账号可以换绑其他手机号,同时增加了灵活性。

from manuals.

WuJiY avatar WuJiY commented on May 22, 2024

1、是否可以将role_set字段 直接设置在staffs员工表里 或者说 单独设置个auth_role_staff 表 是怎样的考量

from manuals.

WuJiY avatar WuJiY commented on May 22, 2024

1、是否可以将role_set字段 直接设置在staffs员工表里 或者说 单独设置个auth_role_staff 表 是怎样的考量

关联
补充:第一条
如果单独使用个auth_role_staff 表 是不是应该设置为多对多的关系
role_id int
staff_id int

from manuals.

TIGERB avatar TIGERB commented on May 22, 2024

可以加一个角色组的表,对应不同角色的集合

from manuals.

WuJiY avatar WuJiY commented on May 22, 2024

可以加一个角色组的表,对应不同角色的集合

是否可以更新完善到文档里 🤔

from manuals.

TIGERB avatar TIGERB commented on May 22, 2024

欢迎 Merge Request哈~

from manuals.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.