package io.jpress.model;

import io.jboot.db.annotation.Table;
import io.jpress.commons.utils.CommonsUtils;
import io.jpress.model.base.BaseUserOrderDelivery;

/**
 * Generated by JPress.
 */
@Table(tableName = "user_order_delivery", primaryKey = "id")
public class UserOrderDelivery extends BaseUserOrderDelivery<UserOrderDelivery> {

    private static final long serialVersionUID = 1L;

    public static final int STATUS_DELIVERING = 1;
    public static final int STATUS_FINISHED = 9;


    @Override
    public boolean save() {
        CommonsUtils.escapeModel(this, "options");
        return super.save();
    }

    @Override
    public boolean update() {
        CommonsUtils.escapeModel(this, "options");
        return super.update();
    }
}
