'use strict'

const Model = require('trails-model')

/**
 * @module Project
 * @description Workspace group by users
 */
module.exports = class Project extends Model {

  static config () {
  }

  static schema () {
    return {
      name: {
        type: 'string'
      },
      status: {
        type: 'string'
      },
      user: {
        model: 'User'
      }
    }
  }
}

'use strict'

const Model = require('trails-model')

/**
 * @module Project
 * @description Workspace group by users
 */
module.exports = class Project extends Model {

  static config () {
  }

  static schema () {
    return {
      name: {
        type: 'string'
      },
      status: {
        type: 'string'
      },
      user: {
        model: 'User'
      },
      latitude: {
        type: 'float'
      },
      longitude: {
        type: 'float'
      },
      zoom: {
        type: 'integer'
      }
    }
  }
}

Add position and zoom in project
Add position and zoom in project
