import db from "$db/db";
import { DataTypes } from '@sequelize/core';
const attributes = {
code: {
type: DataTypes.STRING(255),
allowNull: false,
defaultValue: null,
primaryKey: true,
autoIncrement: false,
comment: null,
field: "code"
},
text: {
type: DataTypes.TEXT,
allowNull: true,
defaultValue: null,
primaryKey: false,
autoIncrement: false,
comment: null,
field: "text"
},
};
const options = {
tableName: "codes",
comment: "",
indexes: [],
timestamps: false
};
db["Code"] = db.define("codes_model", attributes, options);
>index : coinos-ui.git
|
| coinos ui — legacy coinos.io web app (SvelteKit) | coinos |
blob: 9918a3f434412928499f2a687ec6748b4723aa62 (
plain) (
blame)