source: trunk/grails-app/domain/api/Token.groovy @ 2187

Last change on this file since 2187 was 2187, checked in by work@…, 9 years ago
  • api methods should not use authentication, only the authenticate method
File size: 531 bytes
RevLine 
[2181]1/**
2 * Token Domain Class
3 *
4 * Description of my domain class
5 *
6 * @author  your email (+name?)
7 * @since       2010mmdd
8 * @package     ???
9 *
10 * Revision information:
11 * $Rev$
12 * $Author$
13 * $Date$
14 */
15package api
16
[2187]17import dbnp.authentication.SecUser
18
[2181]19class Token {
20    String deviceID
21    String deviceToken
[2187]22    SecUser user
[2181]23    BigInteger sequence
24
25    static constraints = {
26        deviceID nullable: false, unique: true, maxSize: 36
27        deviceToken nullable: false, unique: true, maxSize: 36
[2187]28        user nullable: false
[2181]29    }
30}
Note: See TracBrowser for help on using the repository browser.