3
1

post.ts 239 B

12345678910111213
  1. import db from '../db'
  2. import { DataTypes } from 'sequelize'
  3. const Post = db.define('post', {
  4. id: {
  5. type: DataTypes.INTEGER,
  6. primaryKey: true,
  7. },
  8. text: DataTypes.TEXT,
  9. createdAt: DataTypes.INTEGER,
  10. })
  11. export default Post