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/

24 lines (18 loc) 525 B
const { DataTypes } = require('sequelize'); const { getConnection } = require('../utils/sqlConnection'); const sequelize = getConnection(); const Hand = sequelize.define('Hand', { hostname: { type: DataTypes.STRING, primaryKey: true }, blockchain: { type: DataTypes.STRING(70), primaryKey: true }, mode: { type: DataTypes.STRING(70) }, url: { type: DataTypes.TEXT }, versions: { type: DataTypes.TEXT }, }, { }); const syncTable = async () => { await Hand.sync(); }; syncTable(); module.exports = { Hand };