版本号:RC v1.0.200723
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 附件 ID | id() | |
uuid | char(36) | 否 | uuid | uuid('uuid') | |
user_id | bigint(20) | 否 | 用户 ID | unsignedInteger('user_id') | |
type | smallint(5) | 否 | 0 | 附件类型(0帖子附件,1帖子图片,2帖子视频,3帖子音频,4消息图片) | unsignedSmallInteger('type') |
type_id | bigint(20) | 否 | 0 | 类型数据ID(post_id,dialog_message_id) | unsignedBigInteger('type_id') |
order | tinyint(3) | 否 | 0 | 附件排序 | unsignedTinyInteger('order')->default(0) |
is_remote | tinyint(3) | 否 | 0 | 是否远程附件 | unsignedTinyInteger('is_remote')->default(0) |
is_approved | tinyint(3) | 否 | 1 | 是否合法 | unsignedTinyInteger('is_approved')->default(1) |
attachment | varchar(255) | 否 | 文件系统生成的名称 | string('attachment')->default('') | |
file_path | varchar(255) | 否 | 文件路径 | string('file_path')->default('') | |
file_name | varchar(255) | 否 | 文件原名称 | string('file_name')->default('') | |
file_size | int(10) | 否 | 0 | 文件大小 | unsignedInteger('file_size')->default(0) |
file_type | varchar(255) | 否 | 文件类型 | string('file_type')->default('') | |
ip | varchar(45) | 否 | ip 地址 | ipAddress('ip')->default('') | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 分类 ID | id() | |
name | varchar(255) | 否 | 分类名称 | string('name')->default('') | |
description | text | 否 | 分类描述 | text('description') | |
icon | varchar(255) | 否 | 分类图标 | string('icon')->default('') | |
sort | smallint(5) | 否 | 0 | 显示顺序 | unsignedSmallInteger('sort')->default(0) |
property | tinyint(3) | 否 | 0 | 属性:0 正常 1 首页展示 | unsignedTinyInteger('property')->default(0) |
thread_count | int(10) | 否 | 0 | 主题数 | unsignedInteger('thread_count')->default(0) |
ip | varchar(45) | 否 | ip 地址 | ipAddress('ip')->default('') | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
user_id | bigint(20) | 否 | 用户 ID | unsignedBigInteger('user_id'); | |
deny_user_id | bigint(20) | 否 | 拉黑用户 ID | unsignedBigInteger('deny_user_id'); | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 自增 ID | id() | |
dialog_message_id | bigint(20) | 否 | 0 | 最新消息 ID | unsignedBigInteger('dialog_message_id')->default(0) |
sender_user_id | bigint(20) | 否 | 发送人 UID | unsignedBigInteger('sender_user_id')->index('sender_user_id') | |
recipient_user_id | bigint(20) | 否 | 收信人 UID | unsignedBigInteger('recipient_user_id')->index('recipient_user_id') | |
sender_read_at | datetime | 是 | 发送人阅读时间 | dateTime('sender_read_at')->nullable() | |
recipient_read_at | datetime | 是 | 收信人阅读时间 | dateTime('recipient_read_at')->nullable() | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 自增 ID | id() | |
dialog_id | bigint(20) | 否 | 会话 ID | unsignedBigInteger('dialog_id') | |
user_id | bigint(20) | 否 | 用户 ID | unsignedBigInteger('user_id') | |
attachment_id | bigint(20) | 否 | 附件 ID | unsignedBigInteger('attachment_id') | |
message_text | text | 是 | 内容 | text('message_text')->nullable() | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 表情 ID | id() | |
category | varchar(255) | 否 | 表情分类 | string('category') | |
url | varchar(255) | 否 | 表情地址 | string('url') | |
code | varchar(255) | 否 | 表情符号 | string('code') | |
order | smallint(5) | 否 | 0 | 显示顺序 | unsignedSmallInteger('order')->default(0) |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 自增 ID | id() | |
income | decimal(10,2) | 否 | 用户充值金额 | unsignedDecimal('income', 10, 2) | |
withdrawal | decimal(10,2) | 否 | 用户提现金额 | unsignedDecimal('withdrawal', 10, 2) | |
order_count | int(10) | 否 | 订单数量 | unsignedInteger('order_count') | |
order_amount | decimal(10,2) | 否 | 订单金额 | unsignedDecimal('order_amount', 10, 2) | |
total_profit | decimal(10,2) | 否 | 平台盈利 | unsignedDecimal('total_profit', 10, 2) | |
register_profit | decimal(10,2) | 否 | 注册收入 | unsignedDecimal('register_profit', 10, 2) | |
master_profit | decimal(10,2) | 否 | 打赏帖的分成 | unsignedDecimal('master_portion', 10, 2) | |
withdrawal_profit | decimal(10,2) | 否 | 提现手续费收入 | unsignedDecimal('withdrawal_profit', 10, 2) | |
created_at | date | 否 | 创建时间 | date('created_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 用户组 ID | id() | |
name | varchar(255) | 否 | 用户组名称 | string('name')->default('') | |
type | varchar(50) | 否 | 类型 | string('type', 50)->default('') | |
color | varchar(50) | 否 | 颜色 | string('color', 20)->default('') | |
icon | varchar(100) | 否 | 用户组图标 | string('icon', 100)->default('') | |
default | tinyint(3) | 否 | 0 | 是否为默认用户组 | tinyInteger('default')->unsigned()->default(0) |
is_display | tinyint(3) | 否 | 0 | 是否显示在用户名后 | unsignedTinyInteger('is_display')->default(0) |
is_paid | tinyint(3) | 否 | 0 | 是否收费:0不收费,1收费 | unsignedTinyInteger('is_paid')->default(0) |
fee | decimal(10,2) | 否 | 0.00 | 收费金额 | unsignedDecimal('fee', 10, 2)->default(0.00) |
days | bigint(20) | 否 | 0 | 付费获得天数 | unsignedBigInteger('days')->default(0) |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 自增 ID | id() | |
user_id | bigint(20) | 否 | 所属用户 | unsignedBigInteger('user_id') | |
group_id | bigint(20) | 否 | 用户组 ID | unsignedBigInteger('group_id') | |
order_id | bigint(20) | 否 | 0 | 订单 ID | unsignedBigInteger('order_id')->default(0) |
operator_id | bigint(20) | 否 | 操作人 | unsignedBigInteger('operator_id')->nullable() | |
delete_type | tinyint(3) | 否 | 0 | 删除类型:1到期删除,2管理员修改,3用户复购 | unsignedTinyInteger('delete_type')->default(0) |
expiration_time | datetime | 否 | 用户组到期时间 | dateTime('expiration_time') | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') | |
deleted_at | datetime | 是 | 删除时间 | dateTime('deleted_at')->nullable() |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
group_id | bigint(20) | 否 | 用户组 ID | unsignedBigInteger('group_id') | |
permission | varchar(255) | 否 | 权限名称 | string('permission')->default('') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 自增ID | id() | |
group_id | bigint(20) | 否 | 默认用户组 ID | unsignedBigInteger('group_id') | |
type | tinyint(3) | 否 | 1 | 类型:1普通用户2管理员 | unsignedTinyInteger('type')->default(1) |
code | char(32) | 否 | 邀请码 | char('code', 32)->default('') | |
dateline | int(10) | 否 | 0 | 邀请码生效时间 | unsignedInteger('dateline')->default('0') |
endtime | int(10) | 否 | 0 | 邀请码结束时间 | unsignedInteger('endtime')->default('0') |
user_id | bigint(20) | 否 | 邀请用户 ID | unsignedBigInteger('user_id') | |
to_user_id | bigint(20) | 否 | 0 | 被邀请用户 ID | unsignedBigInteger('to_user_id')->default(0) |
status | tinyint(3) | 否 | 1 | 邀请码状态:0失效1未使用2已使用3已过期 | unsignedTinyInteger('status')->default(1) |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 验证码 ID | id() | |
mobile | varchar(20) | 否 | 手机号 | string('mobile', 20)->default('') | |
code | varchar(10) | 否 | 验证码 | string('code', 10)->default('') | |
type | varchar(20) | 否 | 验证类型 | string('type', 20)->default('') | |
status | tinyint(4) | 否 | 0 | 验证状态 | tinyInteger('state')->default(0) |
ip | varchar(45) | 否 | ip | ipAddress('ip')->default('') | |
expired_at | datetime | 是 | NULL | 验证码过期时间 | dateTime('expired_at')->nullable() |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 通知 ID | id() | |
type | varchar(255) | 否 | 通知类型 | string('type') | |
notifiable_type | varchar(255) | 否 | morphs('notifiable'); | ||
notifiable_id | bigint(20) | 否 | |||
data | text | 否 | 通知内容 | text('data') | |
read_at | datetime | 是 | NULL | 通知阅读时间 | dateTime('read_at')->nullable() |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 自增 ID | id(); | |
status | tinyint(4) | 否 | 0 | 模板状态:1开启0关闭 | tinyInteger('status')->default(0) |
type | tinyint(3) | 否 | 0 | 通知类型:0系统1微信2短信 | unsignedTinyInteger('type')->default(0) |
type_name | varchar(255) | 否 | 类型名称 | string('type_name')->default('') | |
title | varchar(255) | 否 | 标题 | string('title')->default('') | |
content | text | 否 | 内容 | text('content') | |
vars | varchar(255) | 否 | 可选的变量 | string('vars')->default('') | |
template_id | varchar(255) | 否 | 模板 ID | string('template_id')->default('') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 日志 ID | id() | |
user_id | bigint(20) | 否 | 0 | 用户 ID | unsignedBigInteger('user_id')->default(0) |
path | varchar(255) | 否 | URL 路径 | string('path')->default('') | |
method | varchar(10) | 否 | 请求方式 | string('method', 10)->default('') | |
ip | varchar(45) | 否 | IP 地址 | ipAddress('ip')->default('') | |
input | text | 否 | body 请求数据 | text('input') | |
type | tinyint(3) | 否 | 0 | 日志类型:0后台操作 | unsignedTinyInteger('type')->default(0) |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 订单 ID | id() | |
order_sn | char(22) | 否 | 订单编号 | char('order_sn', 22)->default('') | |
payment_sn | varchar(20) | 否 | 支付编号 | string('payment_sn', 20)->default('') | |
amount | decimal(10,2) | 否 | 订单总金额 | unsignedDecimal('amount', 10, 2) | |
master_amount | decimal(10,2) | 否 | 0.00 | 站长分成金额 | unsignedDecimal('master_amount', 10, 2)->default(0.00) |
user_id | bigint(20) | 否 | 付款人 ID | unsignedBigInteger('user_id') | |
payee_id | bigint(20) | 否 | 收款人 ID | unsignedBigInteger('payee_id') | |
type | tinyint(3) | 否 | 0 | 交易类型:1注册、2打赏、3付费主题、4付费用户组 | unsignedTinyInteger('type')->default(0) |
group_id | bigint(20) | 用户组 ID | unsignedBigInteger('group_id')->nullable() | ||
thread_id | bigint(20) | 是 | NULL | 主题 ID | unsignedBigInteger('thread_id')->nullable()->index() |
status | tinyint(3) | 否 | 0 | 订单状态:0待付款;1已付款;2.取消订单;3支付失败;4订单过期 | unsignedTinyInteger('status')->default(0) |
payment_type | smallint(5) | 否 | 0 | 付款方式:微信(10:pc扫码,11:h5支付,12:微信内支付 | unsignedSmallInteger('payment_type')->default(0) |
is_anonymous | tinyint(3) | 否 | 0 | 是否匿名(0否1是) | unsignedTinyInteger('is_anonymous')->default(0) |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 支付通知 ID | id() | |
payment_sn | varchar(20) | 否 | 支付编号 | string('payment_sn', 20)->default('') | |
user_id | bigint(20) | 否 | 付款人 ID | unsignedBigInteger('user_id') | |
trade_no | varchar(64) | 否 | 商户平台交易号 | string('trade_no', 64)->default('') | |
status | tinyint(3) | 否 | 0 | 0未接受到通知,1收到通知 | unsignedTinyInteger('status')->default(0) |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 回复 ID | id() | |
user_id | bigint(20) | 是 | NULL | 发表用户 ID | unsignedBigInteger('user_id')->nullable() |
thread_id | bigint(20) | 是 | NULL | 关联主题 ID | unsignedBigInteger('thread_id')->unsigned()->nullable()->index() |
reply_post_id | bigint(20) | 是 | NULL | 回复 ID | unsignedBigInteger('reply_post_id')->unsigned()->nullable()->index() |
reply_user_id | bigint(20) | 是 | NULL | 回复用户 ID | unsignedBigInteger('reply_user_id')->unsigned()->nullable() |
content | text | 是 | NULL | 内容 | text('content')->nullable() |
ip | varchar(45) | 否 | IP 地址 | ipAddress('ip')->default('') | |
port | int(10) | 端口 | unsignedInteger('port')->default(0) | ||
reply_count | int(10) | 否 | 0 | 关联回复数 | integer('reply_count')->unsigned()->default(0) |
like_count | int(10) | 否 | 0 | 喜欢数 | integer('like_count')->unsigned()->default(0) |
longitude | decimal(10,7) | 经度 | unsignedDecimal('longitude', 10, 7) | ||
latitude | decimal(10,7) | 纬度 | unsignedDecimal('latitude', 10, 7) | ||
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') | |
deleted_at | datetime | 是 | NULL | 删除时间 | dateTime('deleted_at')->nullable() |
deleted_user_id | datetime | 是 | NULL | 删除用户 ID | unsignedBigInteger('deleted_user_id')->nullable() |
is_first | tinyint(3) | 否 | 0 | 是否首个回复 | tinyInteger('is_first')->unsigned()->default(0) |
is_comment | tinyint(3) | 否 | 0 | 是否是回复回帖的内容 | tinyInteger('is_comment')->unsigned()->default(0) |
is_approved | tinyint(3) | 否 | 1 | 是否合法 | tinyInteger('is_approved')->unsigned()->default(1) |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 商品 ID | id() | |
user_id | bigint(20) | 否 | 0 | 用户 ID | unsignedBigInteger('user_id')->default(0) |
post_id | bigint(20) | 否 | 0 | 帖子 ID | unsignedBigInteger('post_id')->default(0) |
platform_id | varchar(255) | 否 | 平台商品 ID | string('platform_id')->default('') | |
title | varchar(255) | 否 | 商品标题 | string('title')->default('') | |
price | decimal(10,2) | 否 | 0.00 | 价格 | unsignedDecimal('price', 10, 2)->default(0) |
image_path | varchar(255) | 否 | 商品封面图 | string('image_path')->default('') | |
type | tinyint(3) | 0 | 商品来源:0淘宝 1天猫 2京东 等 | unsignedTinyInteger('type')->default(0) | |
status | tinyint(3) | 否 | 0 | 商品状态:0正常 1失效/下架 | unsignedTinyInteger('status')->default(0) |
ready_content | text | 否 | 预解析内容 | text('ready_content') | |
detail_content | text | 解析详情页地址 | text('detail_content') | ||
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') | |
deleted_at | datetime | 是 | 删除时间 | dateTime('deleted_at')->nullable() |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
post_id | bigint(20) | 否 | 帖子 ID | unsignedBigInteger('post_id') | |
mentions_user_id | bigint(20) | 否 | @用户 ID | unsignedBigInteger('mentions_user_id') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
post_id | bigint(20) | 否 | 帖子 ID | unsignedBigInteger('post_id')->nullable() | |
stop_word | varchar(255) | 否 | 触发的敏感词,多个以半角逗号隔开 | string('stop_word') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
post_id | bigint(20) | 否 | 帖子 ID | unsignedBigInteger('post_id')->nullable() | |
user_id | bigint(20) | 否 | 用户 ID | unsignedBigInteger('user_id')->nullable() | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 举报 ID | id() | |
user_id | bigint(20) | 否 | 0 | 用户 ID | unsignedBigInteger('user_id')->default(0) |
thread_id | bigint(20) | 否 | 0 | 主题 ID | unsignedBigInteger('thread_id')->default(0) |
post_id | bigint(20) | 否 | 0 | 回复 ID | unsignedBigInteger('post_id')->default(0) |
type | tinyint(3) | 否 | 0 | 举报类型:0个人主页 1主题 2评论/回复 | unsignedTinyInteger('type')->default(0) |
reason | varchar(200) | 否 | 举报理由 | text('reason') | |
status | tinyint(3) | 否 | 0 | 举报状态:0未处理 1已处理 | unsignedTinyInteger('status')->default(0) |
created_at | datetime | 是 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 是 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
token | varchar(255) | 否 | token | string('token')->unique() | |
scope | varchar(255) | 是 | NULL | 作用域 | string('scope')->nullable() |
payload | text | 是 | NULL | 负载 | text('payload')->nullable() |
user_id | bigint(20) | 是 | NULL | 用户 ID | unsignedInteger('user_id')->nullable() |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
expired_at | datetime | 否 | 过期时间 | dateTime('expired_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
key | varchar(100) | 否 | 设置项 key | string('key', 100) | |
value | text | 是 | NULL | 设置项 value | text('value')->nullable() |
tag | varchar(100) | 否 | default | 设置项 tag | string('tag', 100)->default('default') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 敏感词 ID | id() | |
user_id | bigint(20) | 是 | NULL | 创建用户 ID | unsignedBigInteger('user_id')->unsigned()->nullable() |
ugc | varchar(10) | 否 | 用户内容处理方式 | string('ugc', 10)->default('') | |
username | varchar(10) | 否 | 用户名处理方式 | string('username', 10)->default('') | |
find | varchar(255) | 否 | 敏感词或查找方式 | string('find')->default('') | |
replacement | varchar(255) | 否 | 替换词或替换规则 | string('replacement')->default('') | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 主题 ID | id() | |
user_id | bigint(20) | 是 | NULL | 创建用户 ID | unsignedBigInteger('user_id')->nullable() |
last_posted_user_id | bigint(20) | 是 | NULL | 最后回复用户 ID | unsignedBigInteger('last_posted_user_id')->nullable() |
category_id | int(10) | 是 | NULL | 分类 ID | integer('category_id')->unsigned()->nullable() |
type | tinyint(3) | 否 | 0 | 类型:0普通 1长文 2视频 3图片 | tinyInteger('type')->unsigned()->default(0) |
title | vaarchar(255) | 否 | 标题 | string('title')->default('') | |
price | decimal(8,2) | 否 | 0.00 | 价格 | decimal('price')->unsigned()->default(0) |
free_words | int(3) | 否 | 0 | 付费主题可免费阅读字数 | unsignedInteger('free_words')->default(0) |
post_count | int(10) | 否 | 0 | 回复数 | integer('post_count')->unsigned()->default(0) |
view_count | int(10) | 否 | 0 | 查看数 | integer('view_count')->unsigned()->default(0) |
paid_count | int(10) | 否 | 0 | 付费数 | unsignedInteger('paid_count')->default(0) |
rewarded_count | int(10) | 否 | 0 | 打赏数 | unsignedInteger('rewarded_count')->default(0) |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') | |
deleted_at | datetime | 是 | NULL | 删除时间 | dateTime('deleted_at')->nullable() |
deleted_user_id | bigint(20) | 是 | NULL | 删除用户 ID | unsignedBigInteger('deleted_user_id')->nullable() |
is_approved | tinyint(3) | 否 | 1 | 是否合法:0 审核 1 正常 2 回收站 | tinyInteger('is_approved')->unsigned()->default(1) |
is_sticky | tinyint(3) | 否 | 0 | 是否置顶 | tinyInteger('is_sticky')->unsigned()->default(0) |
is_essence | tinyint(3) | 否 | 0 | 是否加精 | tinyInteger('is_essence')->unsigned()->default(0) |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
thread_id | bigint(20) | 否 | 主题 ID | unsignedBigInteger('thread_id')->nullable() | |
topic_id | bigint(20) | 否 | 话题 ID | unsignedBigInteger('topic_id')->nullable() | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
thread_id | bigint(20) | 否 | 主题 ID | unsignedBigInteger('thread_id')->nullable() | |
user_id | bigint(20) | 否 | 用户 ID | unsignedBigInteger('user_id')->nullable() | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 音视频 ID | id() | |
thread_id | bigint(20) | 否 | 主题 ID | unsignedBigInteger('thread_id')->unsigned()->index() | |
post_id | bigint(20) | 否 | 帖子 ID | unsignedBigInteger('post_id')->index() | |
user_id | bigint(20) | 否 | 用户 ID | unsignedBigInteger('user_id')->unsigned() | |
type | tinyint(3) | 否 | 0 | 类型:0 视频 1 音频 | unsignedTinyInteger('type')->default(0) |
status | tinyint(4) | 否 | 0 | 音视频状态:0 转码中 1 转码完成 2 转码失败 | tinyInteger('status')->default(0) |
reason | varchar(255) | 否 | 转码失败原因 | string('reason')->default('') | |
file_name | varchar(255) | 否 | 文件名 | string('file_name')->default('') | |
file_id | varchar(255) | 否 | 媒体文件唯一标识 | string('file_id')->default('') | |
width | int(10) | 否 | 0 | 视频宽 | unsignedInteger('width')->default(0) |
height | int(10) | 否 | 0 | 视频高 | unsignedInteger('height')->default(0) |
duration | decimal(10,2) | 否 | 0 | 音视频时长 | unsignedDecimal('duration', 10, 2)->default(0) |
media_url | varchar(255) | 否 | 媒体播放地址 | string('media_url')->default('') | |
cover_url | varchar(255) | 否 | 媒体封面地址 | string('cover_url')->default('') | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 话题 ID | id() | |
user_id | bigint(20) | 是 | NULL | 作者 ID | unsignedBigInteger('user_id')->nullable() |
content | text | 是 | NULL | 话题名称 | text('content')->nullable() |
thread_count | int(10) | 否 | 0 | 主题数 | unsignedInteger('thread_count')->default(0) |
view_count | int(10) | 否 | 0 | 阅读数 | unsignedInteger('view_count')->default(0) |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 用户 ID | id() | |
username | varchar(100) | 否 | 用户名 | string('username', 100)->unique() | |
password | varchar(100) | 否 | 密码 | string('password', 100) | |
pay_password | varchar(100) | 否 | 支付密码 | string('pay_password', 100)->default('') | |
mobile | varchar(20) | 否 | 手机号 | string('mobile', 20)->default('') | |
mobile_confirmed | tinyint(3) | 否 | 0 | 手机号是否验证 | tinyInteger('mobile_confirmed')->unsigned()->default(0) |
signature | varchar(255) | 否 | 签名 | string('signature')->default('') | |
last_login_ip | varchar(45) | 否 | 最后登录 IP 地址 | ipAddress('last_login_ip')->default('') | |
last_login_port | int(10) | 否 | 0 | 最后登录端口 | unsignedInteger('last_login_port')->default(0) |
register_ip | varchar(45) | 否 | 注册 IP | ipAddress('register_ip')->default('') | |
register_port | int(10) | 否 | 0 | 注册端口 | unsignedInteger('register_port')->default(0) |
register_reason | varchar(50) | 否 | 注册原因 | string('register_reason', 50)->default('') | |
username_bout | int(10) | 否 | 0 | 用户名修改次数 | integer('username_bout')->unsigned()->default(0) |
thread_count | int(10) | 否 | 0 | 主题数 | unsignedInteger('thread_count')->default(0) |
follow_count | int(10) | 否 | 0 | 关注数 | unsignedInteger('follow_count')->default(0) |
fans_count | int(10) | 否 | 0 | 粉丝数 | unsignedInteger('fans_count')->default(0) |
liked_count | int(10) | 否 | 0 | 点赞数 | unsignedInteger('liked_count')->default(0) |
status | tinyint(4) | 否 | 0 | 用户状态:0正常 1禁用 2审核中 3审核拒绝 4审核忽略 | tinyInteger('status')->default(0) |
avatar | varchar(255) | 否 | 头像地址 | string('avatar', 255)->default('') | |
identity | char(18) | 否 | 身份证号码 | char('identity', 18)->default('') | |
realname | varchar(20) | 否 | 身份证姓名 | string('realname', 20)->default('') | |
avatar_at | datetime | 是 | NULL | 头像修改时间 | dateTime('avatar_at')->nullable() |
login_at | datetime | 是 | NULL | 最后登录时间 | dateTime('login_at')->nullable() |
joined_at | datetime | 是 | NULL | 付费加入时间 | dateTime('joined_at')->nullable() |
expired_at | datetime | 是 | NULL | 付费到期时间 | dateTime('expired_at')->nullable() |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 日志 ID | id() | |
user_id | bigint(20) | 否 | 0 | 操作用户 ID | unsignedBigInteger('user_id')->unsigned()->default(0) |
action | char(20) | 否 | 操作 | char('action', 20)->default('') | |
message | varchar(255) | 否 | 备注 | string('message')->default('') | |
log_able_id | int(10) | 否 | 0 | 模型 ID | integer('log_able_id')->unsigned()->default(0) |
log_able_type | varchar(255) | 否 | 模型 | string('log_able_type')->default('') | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 自增 ID | id() | |
from_user_id | bigint(20) | 否 | 关注人 | unsignedBigInteger('from_user_id') | |
to_user_id | bigint(20) | 否 | 被关注人 | unsignedBigInteger('to_user_id') | |
is_mutual | tinyint(4) | 否 | 0 | 是否互相关注:0否 1是 | tinyInteger('is_mutual')->default(0) |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 日志 ID | id() | |
ip | varchar(45) | 否 | IP 地址 | ipAddress('ip')->default('') | |
user_id | bigint(20) | 否 | 0 | 用户 ID | unsignedBigInteger('user_id')->default(0)->index() |
username | varchar(100) | 是 | NULL | 用户名 | string('username', 100)->nullable() |
count | tinyint(4) | 否 | 1 | 错误次数 | tinyInteger('count')->default(1) |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
user_id | bigint(20) | 否 | 钱包所属人 ID | unsignedBigInteger('user_id') | |
available_amount | decimal(10,2) | 否 | 可用金额 | unsignedDecimal('available_amount', 10, 2) | |
freeze_amount | decimal(10,2) | 否 | 冻结金额 | unsignedDecimal('freeze_amount', 10, 2) | |
wallet_status | tinyint(3) | 否 | 0 | 钱包状态:0正常,1冻结提现 | unsignedTinyInteger('wallet_status')->default(0) |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 提现 ID | id() | |
user_id | bigint(20) | 否 | 提现用户 ID | unsignedBigInteger('user_id') | |
cash_sn | bigint(20) | 否 | 提现交易编号 | unsignedBigInteger('cash_sn') | |
cash_charge | decimal(10,2) | 否 | 提现手续费 | unsignedDecimal('cash_charge', 10, 2) | |
cash_actual_amount | decimal(10,2) | 否 | 实际提现金额 | unsignedDecimal('cash_actual_amount', 10, 2) | |
cash_apply_amount | decimal(10,2) | 否 | 提现申请金额 | unsignedDecimal('cash_apply_amount', 10, 2) | |
cash_status | tinyint(3) | 否 | 0 | 提现状态:1:待审核,2:审核通过,3:审核不通过,4:待打款, 5,已打款, 6:打款失败 | unsignedTinyInteger('cash_status')->default(0) |
remark | varchar(255) | 否 | 备注或原因 | string('remark', 255)->default('') | |
trade_time | datetime | 是 | NULL | 交易时间 | dateTime('trade_time')->nullable() |
trade_no | varchar(64) | 是 | NULL | 交易号 | string('trade_no', 64)->nullable() |
error_code | varchar(64) | 是 | NULL | 错误代码 | string('error_code', 64)->nullable() |
error_message | varchar(64) | 是 | NULL | 交易错误描述 | string('error_message', 64)->nullable() |
refunds_status | tinyint(3) | 否 | 0 | 返款状态,0未返款,1已返款 | unsignedTinyInteger('refunds_status')->default(0) |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | ID | id() | |
ip | varchar(45) | 否 | IP 地址 | ipAddress('ip')->default('') | |
user_id | bigint(20) | 否 | 0 | 用户 ID | unsignedBigInteger('user_id')->default(0)->index() |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 钱包明细 ID | id() | |
user_id | bigint(20) | 否 | 钱包明细所属用户 ID | unsignedBigInteger('user_id') | |
change_available_amount | decimal(10,2) | 否 | 变动可用金额 | decimal('change_available_amount', 10, 2) | |
change_freeze_amount | decimal(10,2) | 否 | 变动冻结金额 | decimal('change_freeze_amount', 10, 2) | |
change_type | smallint(5) | 否 | 0 | 10:提现冻结,11:提现成功,12:撤销提现解冻; 31:打赏收入,32:人工收入; 50:人工支出 | unsignedSmallInteger('change_type')->default(0) |
change_desc | varchar(255) | 否 | 变动描述 | string('change_desc', 255)->default('') | |
order_id | bigint(20) | 是 | NULL | 关联订单记录 ID | unsignedBigInteger('order_id')->nullable() |
user_wallet_cash_id | bigint(20) | 是 | NULL | 关联提现记录 ID | unsignedBigInteger('user_wallet_cash_id')->nullable() |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 自增 ID | id(); | |
user_id | bigint(20) | 否 | 0 | 用户 ID | unsignedBigInteger('user_id')->nullable()->default(null) |
mp_openid | varchar(50) | 否 | 公众号 openid | string('mp_openid', 30)->default('') | |
dev_openid | varchar(50) | 否 | 开放平台 openid | string('dev_openid', 30)->default('') | |
min_openid | varchar(50) | 否 | 小程序 openid | string('min_openid', 30)->default('') | |
nickname | varchar(50) | 否 | 微信昵称 | string('nickname', 50)->default('') | |
sex | tinyint(4) | 否 | 0 | 性别 | tinyInteger('sex')->default(0) |
province | varchar(50) | 否 | 省份 | string('province', 100)->default('') | |
city | varchar(50) | 否 | 城市 | string('city', 100)->default('') | |
country | varchar(50) | 否 | 国家 | string('country', 100)->default('') | |
headingimgurl | varchar(255) | 否 | 头像 | string('headimgurl')->default('') | |
privilege | varchar(200) | 否 | 用户特权信息 | string('privilege', 255)->default('') | |
unionid | varchar(100) | 否 | 只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段 | string('unionid', 30)->default('') | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') |
字段 | 类型 | 空 | 默认 | 备注 | 迁移命令 |
---|---|---|---|---|---|
id | bigint(20) | 否 | 自增 ID | id(); | |
name | varchar(100) | 否 | 0 | 规则名 | string('name', 100)->default('') |
keyword | varchar(255) | 否 | 关键词 | string('keyword')->default('') | |
match_type | tinyint(3) | 否 | 匹配类型:0全匹配1半匹配 | unsignedTinyInteger('match_type')->default(0) | |
reply_type | tinyint(3) | 否 | 消息回复类型 | unsignedTinyInteger('reply_type')->default(1) | |
content | varchar(255) | 否 | 回复文本内容 | string('content')->default('') | |
media_id | varchar(255) | 否 | 0 | 素材 ID | string('media_id')->default('') |
media_type | tinyint(3) | 否 | 素材类型:1图片2视频3语音4图文 | unsignedTinyInteger('media_type')->default(0) | |
type | tinyint(3) | 否 | 数据类型:0自动回复1消息回复2关键词回复 | unsignedTinyInteger('type')->default(2) | |
status | tinyint(4) | 否 | 是否开启:0关闭1开启 | tinyInteger('status')->default(1) | |
created_at | datetime | 否 | 创建时间 | dateTime('created_at') | |
updated_at | datetime | 否 | 更新时间 | dateTime('updated_at') | |
deleted_at | datetime | 是 | 删除时间 | dateTime('deleted_at')->nullable() |