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

Last change on this file was 2187, checked in by work@…, 9 years ago
  • api methods should not use authentication, only the authenticate method
File size: 531 bytes
Line 
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
17import dbnp.authentication.SecUser
18
19class Token {
20    String deviceID
21    String deviceToken
22    SecUser user
23    BigInteger sequence
24
25    static constraints = {
26        deviceID nullable: false, unique: true, maxSize: 36
27        deviceToken nullable: false, unique: true, maxSize: 36
28        user nullable: false
29    }
30}
Note: See TracBrowser for help on using the repository browser.