STF -- 数据库定义
来源:互联网 发布:centos7修改ssh端口号 编辑:程序博客网 时间:2024/06/07 20:51
STF的数据库使用的是RethinkDB。RethinkDB启动后,在浏览器里输入http://stf_server_ip:8080即可打开RethinkDB后台管理中心。
在STF中,定义数据库的文件为stf_home/lib/db/tables.js。
var r = require('rethinkdb')module.exports = { users: {//user表 primaryKey: 'email' , indexes: { adbKeys: { indexFunction: function(user) { return user('adbKeys')('fingerprint') } , options: { multi: true } } } }, accessTokens: {//accessTokens表 primaryKey: 'id' , indexes: { email: null } }, vncauth: {//vncauth表 primaryKey: 'password' , indexes: { response: null , responsePerDevice: { indexFunction: function(row) { return [row('response'), row('deviceId')] } } } }, devices: {//devices表 primaryKey: 'serial' , indexes: { owner: { indexFunction: function(device) { return r.branch( device('present') , device('owner')('email') , r.literal() ) } } , present: null , providerChannel: { indexFunction: function(device) { return device('provider')('channel') } } } }, logs: {//logs表 primaryKey: 'id' }}
0 0
- STF -- 数据库定义
- STF 使用
- 初探STF
- STF-minitouch的使用
- STF -- 生成token
- STF -- API调用
- STF框架之minicap工具
- Android Studio连接STF失效
- 数据库定义语言DDL
- 数据库定义-约束
- HyperSQL 数据库的定义
- HyperSQL 数据库的定义
- 数据库集群(定义)
- 数据库路径 宏定义
- 数据库定义语句
- 数据库字段 C++定义
- mysql 数据库字符集定义
- hive数据库定义
- 支付宝支付步骤
- list_tree利用php引用
- java.lang.ClassCastException: org.hibernate.impl.SQLQueryImpl cannot be cast to java.util.List
- Color-based object detection using Hue and Saturation thresholding
- Picasso如何直接加载缓存中的图片
- STF -- 数据库定义
- CodeForces 595B Pasha and Phone
- 【Spring4揭秘 基础4】国际化--MessageSource
- 【mysql】关联子查询的一种优化
- Spring-IoC的简单使用及bean的作用域属性
- hdu 3657(最小割求解最大点权独立集)
- fatal error C1189: #error : WRL requires NTDDI_VERSION to be #defined at least
- 常用三角函数公式
- 记一个复制黏贴的功能想法(黏贴剪切板中的数字自增,复制黏贴自增)