UNPKG

@briswell/bw-domain

Version:

Domain Library for Node.js

80 lines (79 loc) 2.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Sequelize = require("sequelize"); exports.default = (sqlize) => { return sqlize.define('billing', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.BIGINT(20).UNSIGNED }, customerId: { allowNull: false, type: Sequelize.BIGINT(20).UNSIGNED, field: 'customer_id' }, name: { allowNull: false, type: Sequelize.STRING(100), }, kana: { type: Sequelize.STRING(200), }, staffName: { type: Sequelize.STRING(50), field: 'staff_name' }, zip: { type: Sequelize.STRING(8), }, address1: { type: Sequelize.STRING(50) }, address2: { type: Sequelize.STRING(300) }, disableFlag: { allowNull: false, type: Sequelize.SMALLINT(6).UNSIGNED, defaultValue: 0, field: 'disable_flag' }, createdAt: { allowNull: false, type: Sequelize.DATE, defaultValue: Sequelize.literal('CURRENT_TIMESTAMP'), field: 'created_at' }, createdBy: { allowNull: false, type: Sequelize.BIGINT(20).UNSIGNED, field: 'created_by' }, updatedAt: { allowNull: false, type: Sequelize.DATE, defaultValue: Sequelize.literal('CURRENT_TIMESTAMP'), field: 'updated_at' }, updatedBy: { allowNull: false, type: Sequelize.BIGINT(20).UNSIGNED, field: 'updated_by' }, deletedAt: { allowNull: true, type: Sequelize.DATE, field: 'deleted_at' }, deletedBy: { allowNull: true, type: Sequelize.BIGINT(20).UNSIGNED, field: 'deleted_by' } }, { tableName: 'billing', paranoid: true }); };