add public feedback/contact option
All checks were successful
delpoy / build-and-deploy (push) Successful in 1m5s

This commit is contained in:
2024-11-30 03:00:46 +01:00
parent ceaf006dd5
commit 55798fd294
10 changed files with 175 additions and 28 deletions

View File

@@ -99,13 +99,13 @@ export class StrikePunishment extends Model {
@Table({ modelName: 'feedback', underscored: true })
export class Feedback extends Model {
@Column({ type: DataTypes.STRING, allowNull: false, unique: true })
@Index
declare url_hash: string;
@Column({ type: DataTypes.STRING, allowNull: false })
declare event: string;
@Column({ type: DataTypes.STRING })
declare content: string;
@Column({ type: DataTypes.STRING, allowNull: false, unique: true })
@Index
declare url_hash: string;
@Column({ type: DataTypes.INTEGER })
@ForeignKey(() => User)
declare user_id: number;