@grouparoo/core
Version:
The Grouparoo Core
30 lines (25 loc) • 592 B
text/typescript
import Sequelize from "sequelize";
export default {
up: async (
queryInterface: Sequelize.QueryInterface,
DataTypes: typeof Sequelize
) => {
await queryInterface.createTable("profiles", {
guid: {
type: DataTypes.STRING(40),
primaryKey: true,
},
createdAt: {
type: DataTypes.DATE,
allowNull: false,
},
updatedAt: {
type: DataTypes.DATE,
allowNull: false,
},
});
},
down: async (queryInterface: Sequelize.QueryInterface) => {
await queryInterface.dropTable("profiles");
},
};