Fix healthchecks: install curl in backend and frontend images

This commit is contained in:
Agent Zero
2026-05-24 21:54:58 +00:00
commit cdf350c618
52 changed files with 7885 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
const { DataTypes } = require('sequelize');
const { sequelize } = require('../config/database');
const User = require('./User');
const Drawing = sequelize.define('Drawing', {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
autoIncrement: true,
},
name: {
type: DataTypes.STRING,
allowNull: false,
defaultValue: 'Unbenannt',
},
canvas_json: {
type: DataTypes.TEXT,
allowNull: true,
},
thumbnail: {
type: DataTypes.TEXT,
allowNull: true,
},
});
Drawing.belongsTo(User, { foreignKey: 'userId', onDelete: 'CASCADE' });
User.hasMany(Drawing, { foreignKey: 'userId' });
module.exports = Drawing;