<commit_before>package com.ism.user.domains

/***
 * 用户类
 */
class User {
    String name;
    String password;
    String cellphone;
    String email;
    boolean sex = true;
    String photo;
    String birth;
    String registerDate = new Date().format("yyyyMMddHHmmss");
    String lastLoginDate = new Date().format("yyyyMMddHHmmss");
    int state = 1;
    //字段的逻辑约束
    static constraints = {
        name(nullable:true,maxSize:255,unique:true)
        password(nullable:false,maxSize:255)
        cellphone(nullable:true,maxSize: 32)
        email(nullable:true,email:true)
        photo(nullable:true,maxSize:255)
        birth(nullable:true,maxSize:255)
    }
    //字段跟数据库的关联
    static mapping = {
        name(column:"user_name")
        passowrd(column:"<PASSWORD>")
        cellphone(column:"user_cellphone")
        email(column:"user_column")
        sex(column:"user_sex")
        photo(column:"user_photo")
        birth(column:"user_birth")
        registerDate(column:"user_registerDate")
        lastLoginDate(column:"user_lastLoginDate")
        state(column:"user_state")
        <commit_msg>去掉画蛇添足的数据库映射<commit_after>package com.ism.user.domains

/***
 * 用户类
 */
class User {
    String name;
    String password;
    String cellphone;
    String email;
    boolean sex = true;
    String photo;
    String birth;
    String registerDate = new Date().format("yyyyMMddHHmmss");
    String lastLoginDate = new Date().format("yyyyMMddHHmmss");
    int state = 1;
    //字段的逻辑约束
    static constraints = {
        name(nullable:true,maxSize:255,unique:true)
        password(nullable:false,maxSize:255)
        cellphone(nullable:true,maxSize: 32)
        email(nullable:true,email:true)
        photo(nullable:true,maxSize:255)
        birth(nullable:true,maxSize:255)
    }
    //字段跟数据库的关联
        state(column:"user_state")
{'fraction_non_alphanumeric': 0.11984815618221258, 'fraction_numerical': 0.016268980477223426, 'mean_word_length': 3.037199124726477, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '5994568', 'n_tokens_mistral': 622, 'n_tokens_neox': 629, 'n_words': 97}