floriday/models/tradeItem/botanicalName.js

24 lines
386 B
JavaScript
Raw Normal View History

import { Sequelize } from 'sequelize';
2022-12-05 12:53:30 +00:00
const botanicalName = {
botanicalNameId: {
type: Sequelize.STRING,
primaryKey: true,
},
2023-05-15 12:19:43 +00:00
name: {
type: Sequelize.STRING,
},
tradeItemId: {
type: Sequelize.STRING,
},
2022-12-05 12:53:30 +00:00
};
export default (sequelize) => {
return sequelize.define(
'tradeItemBotanicalName',
botanicalName, {
2023-05-15 12:19:43 +00:00
timestamps: false,
freezeTableName: true,
}
);
};