'use strict';

// reply.js

var base = require('./_base.js');

module.exports = function (warp) {
    return base.defineModel(warp, 'Reply', [
        base.column_id('topic_id', { index: true }),
        base.column_id('user_id', { index: true }),
        base.column_boolean('deleted'),
        base.column_bigint('upvotes'),
        base.column_bigint('downvotes'),
        base.column_bigint('score'),
        base.column_text('content', { type: 'text' })
    ], {
        table: 'replies'
    });
};

@@ -278,16 +278,41 @@
 deleted'
+, %7B defaultValue: false %7D
 ),%0A     
@@ -338,24 +338,44 @@
 nt('upvotes'
+, %7B defaultValue: 0%7D
 ),%0A        b
@@ -403,16 +403,36 @@
 wnvotes'
+, %7B defaultValue: 0%7D
 ),%0A     
@@ -460,16 +460,36 @@
 ('score'
+, %7B defaultValue: 0%7D
 ),%0A     

add default values for model