<commit_before>import {type} from 'thinky'

const {string, date} = type

export default {
  name: 'Pool',
  table: 'pools',
  schema: {
    id: string()
      .uuid(4)
      .allowNull(false),

    name: string()
      .required()
      .allowNull(false),

    createdAt: date()
      .required()
      .allowNull(false)
      .default(new Date()),

    updatedAt: date()
      .required()
      .allowNull(false)
      .default(new Date()),
  },
  associate: (Vote, models) => {
    Vote.belongsTo(models.Cycle, 'cycle', 'cycleId', 'id', {init: false})<commit_msg>adding missing cycleId attribute to thinky Pool model<commit_after>import {type} from 'thinky'

const {string, date} = type

export default {
  name: 'Pool',
  table: 'pools',
  schema: {
    id: string()
      .uuid(4)
      .allowNull(false),

    cycleId: string()
      .uuid(4)
      .allowNull(false),

    name: string()
      .required()
      .allowNull(false),

    createdAt: date()
      .required()
      .allowNull(false)
      .default(new Date()),

    updatedAt: date()
      .required()
      .allowNull(false)
      .default(new Date()),
  },
  associate: (Vote, models) => {
    Vote.belongsTo(models.Cycle, 'cycle', 'cycleId', 'id', {init: false})
{'fraction_non_alphanumeric': 0.16707218167072183, 'fraction_numerical': 0.0024330900243309003, 'mean_word_length': 2.597667638483965, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1682769', 'n_tokens_mistral': 423, 'n_tokens_neox': 417, 'n_words': 98}