UNPKG

@gameroom/gameroom-kit

Version:

Node kit for the Gameroom API

17 lines (15 loc) 599 B
const { SecondsFrom1970 } = require('../lib'), store = require('../store'); module.exports = store.define('Timecard', { // Timecard ended_at: {type: SecondsFrom1970, default: SecondsFrom1970.now}, ended_correction: {type: SecondsFrom1970, default: SecondsFrom1970.now}, info: {type: String, default: null}, started_at: {type: SecondsFrom1970, default: SecondsFrom1970.now}, started_correction: {type: SecondsFrom1970, default: SecondsFrom1970.now}, status: {type: Number, default: 0}, // Relationships user_id: {type: String, default: null} }, { resourceName: 'timecards' });