var keystone = require('arch-keystone');
var transform = require('model-transform');
var Types = keystone.Field.Types;

var Watch = new keystone.List('Watch', {
    track: true,
	sortable: true,
});

var price = 'NTD30000以下, NTD30000~NTD70000, NTD70000~NTD150000, NTD150000~NTD300000, NTD300000~NTD500000, NTD500000~NTD1500000, NTD3000000以上';
Watch.add({
  brand: { label: '品牌', type: Types.Relationship, ref: 'WatchBrand' },
  name: { label: '品名', type: String },
  type: { label: '型號', type: String },
  style: { label: '錶款名稱', type: String },
  series: { label: '系列', type: String },
  watchImage: { label: '圖片', type: Types.ImageRelationship, ref: 'Image' },
  price: { label: '價格', type: String },
  ga: { label: '發表年份', type: Number},
  limit: { label: '限量支數', type: Number, index: true},
  sex: { label: '性別', type: Types.Select, options: '男錶款, 女錶款, 中性錶款', default: '中性錶款'},
  luminous: { label: '夜光', type: Types.Select, options: '有, 無', default: '有'},
  movement: { label: '機芯', type: Types.Select, options: '自動上鏈, 手動上鏈, 石英, 光動能, 人動電能, GPS, 電波, 智能錶' },
  power: { label: '動力', type: String },
  watchfunction: { label: '功能', type: Types.Relationship, ref: 'WatchFunction', many: true },
  material: { label: '材質', type: Types.Select, options: '不鏽鋼, 半金, 銅, 黃金, 玫瑰金, 白金, 鉑金, 鉑金, 鈦金屬, 特殊合金, 複合材質' },
  waterproof: { label: '防水', type: Types.Select, options: '無, 30米, 50米, 100米, 200米, 300米, 600米, 1000米, 2000米, 2000米, 4000米' },
  popular: { label: '熱門錶款', type: Boolean, index: true },
  treasury: { label: '庫藏區', type: Boolean, index: true },
  content: { label: '內文', type: Types.Html, wysiwyg: true, height: 400 },
  relateds: { label: '相關文章', type: Types.Relationship, ref: 'Post', many: true },
  stores: { label: '錶店', type: Types.Relationship, ref: 'WatchStore', many: true },
  createTime: { type: Types.Datetime, default: Date.now, utc: true },
});

transform.toJSON(Watch);
Watch.defaultColumns = 'name, brand|20%, series|20%, type|20%, movement|20%';

Watch.register();

@@ -912,51 +912,28 @@
 pe: 
-Types.Select, options: '%E6%9C%89, %E7%84%A1', default: '%E6%9C%89'
+Boolean, index: true
 %7D,%0A 
@@ -1028,24 +1028,24 @@
 %E9%9B%BB%E6%B3%A2, %E6%99%BA%E8%83%BD%E9%8C%B6' %7D,%0A
-
   power: %7B l
@@ -1068,24 +1068,160 @@
 : String %7D,%0A
+  size: %7B label: '%E9%8C%B6%E6%AE%BC%E5%B0%BA%E5%AF%B8', type: String %7D,%0A  color: %7B label: '%E9%9D%A2%E7%9B%A4%E9%A1%8F%E8%89%B2', type: String %7D,%0A  youtube: %7B label: 'Youtube %E5%BD%B1%E7%89%87', type: Types.Url %7D,%0A
   watchfunct
@@ -1807,24 +1807,111 @@
 ny: true %7D,%0A
+  relatedwatch: %7B label: '%E7%9B%B8%E4%BC%BC%E9%8C%B6%E6%AC%BE', type: Types.Relationship, ref: 'Watch', many: true %7D,%0A
   stores: %7B 

add some fields in Watch.js