Files
Showy/backend/models/EntrySeenBuddy.js
T
X4Lo e82b905886 Add Watch Buddies feature
- Created WatchBuddy model
- M:N junctions to EntrySeen/EpisodeSeen
  and Media relation for profile pictures
- Full CRUD + search + profile picture upload
- WatchBuddySelect multi-select with search and inline create, replaced
  all seen_with text inputs
- WatchBuddiesPage (grid) and WatchBuddyProfilePage (edit form,
  icon-based contacts, poster-grid watch history, monthly timeline)
2026-06-25 03:11:14 +01:00

11 lines
397 B
JavaScript

const { DataTypes } = require('sequelize');
const sequelize = require('../config/database');
const EntrySeenBuddy = sequelize.define('entry_seen_buddy', {
id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
entry_seen_id: { type: DataTypes.INTEGER, allowNull: false },
watch_buddy_id: { type: DataTypes.INTEGER, allowNull: false },
});
module.exports = EntrySeenBuddy;