<commit_before>/**
 * Token Domain Class
 *
 * Description of my domain class
 *
 * @author  your email (+name?)
 * @since	2010mmdd
 * @package	???
 *
 * Revision information:
 * $Rev$
 * $Author$
 * $Date$
 */
package api

class Token {
    String deviceID
    String deviceToken
    BigInteger sequence

    static constraints = {
        deviceID nullable: false, unique: true, maxSize: 36
        deviceToken nullable: false, unique: true, maxSize: 36
    }
}<commit_msg>- api methods should not use authentication, only the authenticate method<commit_after>/**
 * Token Domain Class
 *
 * Description of my domain class
 *
 * @author  your email (+name?)
 * @since	2010mmdd
 * @package	???
 *
 * Revision information:
 * $Rev$
 * $Author$
 * $Date$
 */
package api

import dbnp.authentication.SecUser

class Token {
    String deviceID
    String deviceToken
    SecUser user
    BigInteger sequence

    static constraints = {
        deviceID nullable: false, unique: true, maxSize: 36
        deviceToken nullable: false, unique: true, maxSize: 36
        user nullable: false
    }
}
{'fraction_non_alphanumeric': 0.09981684981684982, 'fraction_numerical': 0.014652014652014652, 'mean_word_length': 3.0183823529411766, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1192255', 'n_tokens_mistral': 341, 'n_tokens_neox': 317, 'n_words': 111}