Comments (6)
staff_id
对应的是哪个员工;role_set
存auth_role
.id
,给员工关联上角色。- 不建议使用
text
类型,不代表不能用。现在这是个相当于后台系统的表,没有很大的数据量和请求量,所以该场景下可以使用。 staff_info
的email
、phone
是冗余的设计,不建议去掉,因为staff_info
的email
是员工的企业邮箱;account_user
的email
是企业下互联网应用的账号注册时的邮箱或绑定的个人邮箱;phone
同样的道理,员工的账号可以换绑其他手机号,同时增加了灵活性。
from manuals.
1、是否可以将role_set字段 直接设置在staffs员工表里 或者说 单独设置个auth_role_staff 表 是怎样的考量
from manuals.
1、是否可以将role_set字段 直接设置在staffs员工表里 或者说 单独设置个auth_role_staff 表 是怎样的考量
关联
补充:第一条
如果单独使用个auth_role_staff 表 是不是应该设置为多对多的关系
role_id int
staff_id int
from manuals.
可以加一个角色组的表,对应不同角色的集合
from manuals.
可以加一个角色组的表,对应不同角色的集合
是否可以更新完善到文档里 🤔
from manuals.
欢迎 Merge Request哈~
from manuals.
Related Issues (20)
- 请教下交易中心得代码设计部分问题,感谢 HOT 1
- 商品模块 HOT 8
- 用户模块 HOT 7
- 商品模块 HOT 1
- 交易模块,关于重复支付的交易表设计的几点疑问 HOT 5
- 关于活动方案活活动场次的问题 HOT 3
- 数据库E-R工具是用什么生成的 HOT 1
- 购物车加锁的问题 HOT 4
- LinkIT360 HOT 1
- 多场次的场景下一些基础规则跟活动方案绑定好还是跟场次绑定好? HOT 1
- 购物车redis数据类型使用String是好的设计吗? HOT 4
- 域名过期了~~~ HOT 2
- 商品模块问题 HOT 1
- 打开网址 HOT 5
- 图片失效了 HOT 4
- cdn 链接无法打开 HOT 3
- 优惠券页面的cdn挂了 HOT 1
- 商品模块 属性表咨询
- 求助~优惠券页面的某些图片挂了~
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from manuals.