UNPKG

coctohug-web

Version:

- Nice localization with support of dozens of languages: [English](https://github.com/raingggg/coctohug/blob/main/readme_en.md), [العربية](https://github.com/raingggg/coctohug/blob/main/readme_ar.md), [Bulgarian](https://github.com/raingggg/coctohug/blob/

22 lines (17 loc) 499 B
const { DataTypes } = require('sequelize'); const { getConnection } = require('../utils/sqlConnection'); const sequelize = getConnection(); const Wallet = sequelize.define('Wallet', { hostname: { type: DataTypes.STRING, primaryKey: true }, blockchain: { type: DataTypes.STRING(70), primaryKey: true }, details: { type: DataTypes.TEXT }, coldWallet: { type: DataTypes.STRING } }, { }); const syncTable = async () => { await Wallet.sync(); }; syncTable(); module.exports = { Wallet };