Skip to content

post_auths 帖子-授权记录表

字段名字段类型字段注释默认值可空备注
idbigint UNSIGNED记录 IDNO自动递增
post_idbigint UNSIGNED帖子 IDNO关联字段 posts->id
auth_typetinyint UNSIGNED类型1NO1.用户 / 2.角色
auth_idbigint UNSIGNED目标 IDNO关联字段 users->id
关联字段 roles->id
created_attimestamp创建时间useCurrentNO比如 MySQL 默认值为 CURRENT_TIMESTAMP
updated_attimestamp更新时间YES
deleted_attimestamp删除时间YES

Released under the Apache-2.0 License