create attachment file table

This commit is contained in:
Takeshi Kimata
2024-03-16 21:14:59 +09:00
parent f5a2eb24fb
commit afb58585fa
12 changed files with 273 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
const express = require("express");
const path = require('path');
const { Sequelize } = require("sequelize");
const app = express();
@@ -13,6 +14,9 @@ app.use(cors(corsOptions));
// enable json middleware
app.use(express.json());
// Specify the directory to serve static files
app.use(express.static(path.join(__dirname, "public")));
// init sequalize
const sequelize = new Sequelize({
dialect: "sqlite",