<commit_before>package net.okjsp

import grails.plugin.springsecurity.oauth.FacebookOAuthToken
import grails.plugin.springsecurity.oauth.GoogleOAuthToken
import grails.transaction.Transactional

class Avatar implements Comparable {

    static enum PictureType {
    }

    String nickname
    String picture
    AvatarPictureType pictureType = AvatarPictureType.GRAVATAR
    Integer activityPoint = 0

    static hasMany = [activities: Activity, tags : Tag]

    static mapping = {
        pictureType enumType: 'ordinal'
    }

    static constraints = {
        nickname blank: false, unique: true, maxSize: 20, validator: {
            if(User.disAllowUsernameFilter(it) || disAllowNicknameFilter(it))
                return ['default.invalid.disallow.message']
        }
        picture blank: false
        activityPoint bindable: false
    }<commit_msg>공식 계정 필드 추가<commit_after>package net.okjsp

import grails.plugin.springsecurity.oauth.FacebookOAuthToken
import grails.plugin.springsecurity.oauth.GoogleOAuthToken
import grails.transaction.Transactional

class Avatar implements Comparable {

    static enum PictureType {
    }

    String nickname
    String picture
    AvatarPictureType pictureType = AvatarPictureType.GRAVATAR
    Integer activityPoint = 0
    Boolean official = false

    static hasMany = [activities: Activity, tags : Tag]

    static mapping = {
        pictureType enumType: 'ordinal'
    }

    static constraints = {
        nickname blank: false, unique: true, maxSize: 20, validator: {
            if(User.disAllowUsernameFilter(it) || disAllowNicknameFilter(it))
                return ['default.invalid.disallow.message']
        }
        picture blank: false
        activityPoint bindable: false
        official nullable: true, bindable: false
    }
{'fraction_non_alphanumeric': 0.07126948775055679, 'fraction_numerical': 0.0033407572383073497, 'mean_word_length': 3.1121281464530894, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2388792', 'n_tokens_mistral': 513, 'n_tokens_neox': 490, 'n_words': 123}