<commit_before>import {Table} from "../orm/annotations/Table";
import {Column} from "../orm/annotations/Column";
import {PrimaryKey} from "../orm/annotations/PrimaryKey";
import {Model} from "../orm/models/Model";
import {Default} from "../orm/annotations/Default";
import {DataType} from "../orm/models/DataType";
import {DefaultScope} from "../orm/annotations/DefaultScope";
import {AutoIncrement} from "../orm/annotations/AutoIncrement";
import jwt = require('jsonwebtoken');
import {config} from "../config";
import {Scopes} from "../orm/annotations/Scopes";

@Table
@DefaultScope({attributes: ['id', 'evcoId', 'code', 'isAutoGenerated', 'languageCode']})
export class User extends Model<User> implements IUser {

  @Column
  @PrimaryKey
  @AutoIncrement
  id: number;

  @Column
  providerId: string;
  
  @Column
  evcoId: string;

  @Column
  code: string;

  @Column
  password: string;

  @Column
  isAutoGenerated: boolean;

  @Column
  @Default(DataType.NOW)
  registrationDate: Date;

  @Column
  languageCode: string;

  @Column({
    type: DataType.VIRTUAL
  })
  token: string;
  
}<commit_msg>providerId added to default scope<commit_after>import {Table} from "../orm/annotations/Table";
import {Column} from "../orm/annotations/Column";
import {PrimaryKey} from "../orm/annotations/PrimaryKey";
import {Model} from "../orm/models/Model";
import {Default} from "../orm/annotations/Default";
import {DataType} from "../orm/models/DataType";
import {DefaultScope} from "../orm/annotations/DefaultScope";
import {AutoIncrement} from "../orm/annotations/AutoIncrement";
import jwt = require('jsonwebtoken');
import {config} from "../config";
import {Scopes} from "../orm/annotations/Scopes";

@Table
@DefaultScope({attributes: ['id', 'evcoId', 'providerId', 'code', 'isAutoGenerated', 'languageCode']})
export class User extends Model<User> implements IUser {

  @Column
  @PrimaryKey
  @AutoIncrement
  id: number;

  @Column
  providerId: string;

  @Column
  evcoId: string;

  @Column
  code: string;

  @Column
  password: string;

  @Column
  isAutoGenerated: boolean;

  @Column
  @Default(DataType.NOW)
  registrationDate: Date;

  @Column
  languageCode: string;

  @Column({
    type: DataType.VIRTUAL
  })
  token: string;

}
{'fraction_non_alphanumeric': 0.1552491103202847, 'fraction_numerical': 0.0, 'mean_word_length': 4.45873786407767, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6763702', 'n_tokens_mistral': 702, 'n_tokens_neox': 685, 'n_words': 183}