mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
23 lines
363 B
JavaScript
23 lines
363 B
JavaScript
var r = require('rethinkdb')
|
|
|
|
module.exports = {
|
|
users: {
|
|
primaryKey: 'email'
|
|
}
|
|
, devices: {
|
|
primaryKey: 'serial'
|
|
, indexes: {
|
|
ownerEmail: function(device) {
|
|
return device('owner')('email')
|
|
}
|
|
, lastHeartbeatAt: null
|
|
}
|
|
}
|
|
, logs: {
|
|
primaryKey: 'id'
|
|
, indexes: {
|
|
serial: null
|
|
, timestamp: null
|
|
}
|
|
}
|
|
}
|