An open API service indexing awesome lists of open source software.

https://github.com/windsting/lida-server

The server part of a project of lida.
https://github.com/windsting/lida-server

Last synced: about 1 year ago
JSON representation

The server part of a project of lida.

Awesome Lists containing this project

README

          

# lida Project Data Schema

### account(账户)
| 字段 | 类型 | 用途 |
|-------------|----------|------|
| id | integer | id |
| account_id | string | 用户名 |
| nick_name | string | 昵称 |
| dev_group | integer | 开发组 |
| gender | integer | 性别 |
| balance | interger | 余额 |
| last_login | datatime | 最后登录 |
| tycoon_point | integer | 土豪值 |
| charm_point | integer | 魅力值 |
| active_point | integer | 活跃值 |

### stage_template(题目模板)
| 字段 | 类型 | 用途 |
|-----------|----------|-------|
| id | integer | id |
| name | string | 名称 |
| desc | string | 简介 |
| full_score | integer | 满分 |
| price | integer | 价格 |
| duration | interger | 时限(秒) |
| difficuty | interger | 困难程度(1 最简单,10变态难度) |

### media_type(媒体类型)
| 字段 | 类型 | 用途 |
|-----------|---------|------|
| id | integer | id |
| name | string | 类型名 |
| icon_url | string | 图标地址 |

### media_content(媒体内容)
| 字段 | 类型 | 用途 |
|------------|---------|------|
| id | integer | id |
| owner_id | integer | 上传者id|
| content | string | 文件名或文本内容 |
| filetype | string | 文件类型 |

### replace(可替换内容)
| 字段 | 类型 | 用途 |
|--------------------|---------|------|
| id | integer | id |
| stage_template_id | integer | 题目id |
| media_type | integer | 媒体类型 |
| slot | integer | 序号 |

### grant_type(媒体类型)
| 字段 | 类型 | 用途 |
|-----------|---------|------|
| id | integer | id |
| name | string | 类型名 |

### grant(邀约)
| 字段 | 类型 | 用途 |
|-----------|----------|------------|
| id | integer | id |
| publisher | integer | 发布者id |
| grant_type| integer | 公开、聚会、链接分享 |
| name | string | 名称 |
| desc | string | 简介 |
| cover_id | integer | 简介图片的media_id |
| price | integer | 价格 |
| order_time | datatime | 下单时间 |
| start_time | datatime | 开始时间 |
| end_time | datatime | 结束时间 |
| gift_score | integer | 发奖分数 |
| city | integer | 活动城市 |
| paid | int | 付款状态 |

### product(商品)
| 字段 | 类型 | 用途 |
|------------|---------|------|
| id | integer | id |
| mechant_id | integer | 商户id |
| name | string | 名称 |
| desc | string | 简介文字 |
| image_id | integer | 简介图片的media_id |
| price | integer | 价格 |
| sku | integer | 库存 |

### gift(礼品)
| 字段 | 类型 | 用途 |
|---------- |----------|------|
| id | integer | id |
| grant_id | integer | 邀约id |
| product_id| integer | 商品id |
| content | string | 名称 |
| image_id | integer | 简介图片的media_id |
| count | integer | 数量 |
| ranking | integer | 名次 |
| min_score | integer | 发奖分数|

### stage(题目)
| 字段 | 类型 | 用途 |
|-------------|---------|------|
| id | intege | id |
| template_id | integer | 模板id |
| grant_id | integer | 邀约id |
| mode | integer | 难度模式 |

### replace_content(替换内容)
| 字段 | 类型 | 用途 |
|------------|---------|------|
| id | integer | id |
| stage_id | integer | 题目id |
| replace_id | integer | 内容id |
| media_id | integer | 文件id |

### grant_invite(邀约邀请)
| 字段 | 类型 | 用途 |
|------------|---------|-------|
| id | integer | id |
| grant_id | integer | 邀约id |
| invited_id | integer | 受邀者id |
| status | integer | 邀请状态 |
| created_at | datetime| 邀请时间 |

### grant_refer(邀约响应)
| 字段 | 类型 | 用途 |
|------------|----------|-------|
| id | integer | id |
| grant_id | integer | 邀约id |
| player_id | integer | 参与者id |
| rank | integer | 名次 |
| address_id | integer | 寄送地址 |
| mail_type | integer | 快递公司 |
| mail_id | integer | 快递单号 |
| score | integer | 收货结果 |
| comment | string | 收货评价 |
| created_at | datatime | 响应时刻 |

### task(答题尝试)
| 字段 | 类型 | 用途 |
|-----------|----------|-------|
| id | integer | id |
| player_id | integer | 参与者id |
| stage_id | integer | 题目id |
| score | integer | 分数 |
| created_at| datetime | 答题时间 |

### location(行政区划)
| 字段 | 类型 | 用途 |
|-------------|-------------|------|
| id | integer | id |
| name | string | 地名 |
| parent_id | integer | 上级地区id |
| short_name | string | 短名 |
| level_type | integer | 级别 |
| city_code | string | 电话区号 |
| zip_code | string | 邮编 |
| merger_name | string | 全名 |
| lng | string | 经度 |
| lat | string | 纬度 |
| pinyin | string | 拼音 |

### address(收货地址)
| 字段 | 类型 | 用途 |
|-------------|---------|------|
| id | integer | id |
| account_id | integer | 用户id |
| area_id | integer | 区县 |
| detail | string | 详细地址 |
| mobile | string | 手机号码 |
| contact_name| string | 收货人名 |
| usage | integer | 默认用途 |

### message(通知)
| 字段 | 类型 | 用途 |
|-----------|----------|-------|
| id | integer | id |
| user_id | integer | 接收者id |
| sender_id | integer | 发送者id |
| title | string | 标题 |
| content | string | 内容 |
| time | datetime | 发送时间 |
| read | bool | 已读 |

### param_type(参数类型)
| 字段 | 类型 | 用途 |
|------|---------|-------------|
| id | integer | id |
| name | string | 一组参数的名字 |
| desc | string | 描述(一般是一个公式) |

### param(参数)
| 字段 | 类型 | 用途 |
|-------|---------|------|
| id | integer | id |
| type | integer | 类型id |
| name | string | 参数名 |
| desc | string | 参数描述 |
| value | integer | 参数值 |