<commit_before>'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
	Schema = mongoose.Schema;

/**
 * Inventory Schema
 */
var InventorySchema = new Schema({
  location: {
    type: String,     // 库存位置
    default: ''
  },
  store_name: {
    type: String,     // 商店名字
    default: ''
  },
  owner: {
    type: String,     // 拥有者
    default: ''
  },
  inv_code: {         // 入库编码
    type: String,<commit_msg>set inv_code of inventory to unique.<commit_after>'use strict';

/**
 * Module dependencies.
 */
var mongoose = require('mongoose'),
	Schema = mongoose.Schema;

/**
 * Inventory Schema
 */
var InventorySchema = new Schema({
  location: {
    type: String,     // 库存位置
    default: ''
  },
  store_name: {
    type: String,     // 商店名字
    default: ''
  },
  owner: {
    type: String,     // 拥有者
    default: ''
  },
  inv_code: {         // 入库编码
    type: String,
    unique: true,
{'fraction_non_alphanumeric': 0.15492957746478872, 'fraction_numerical': 0.0, 'mean_word_length': 2.1752577319587627, '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': '4894831', 'n_tokens_mistral': 330, 'n_tokens_neox': 343, 'n_words': 74}