inital commit

This commit is contained in:
Torsten Schulz
2024-06-15 23:01:46 +02:00
parent 1b7fefe381
commit 61653ff407
105 changed files with 7805 additions and 524 deletions

25
models/Page.js Normal file
View File

@@ -0,0 +1,25 @@
// models/Page.js
const { DataTypes } = require('sequelize');
module.exports = (sequelize) => {
const Page = sequelize.define('Page', {
link: {
type: DataTypes.STRING,
allowNull: false,
unique: true
},
name: {
type: DataTypes.STRING,
allowNull: false
},
content: {
type: DataTypes.TEXT,
allowNull: true
}
}, {
tableName: 'pages',
timestamps: true
});
return Page;
};