// Attribution metadata for the shared asset library.
// Covers provenance (where it came from), legal (license, rights holder),
// and internal tracking (who uploaded it).
exports.up = (pgm) => {
  pgm.addColumns('shared_assets', {
    license:          { type: 'varchar(200)' },    // e.g. "Pexels License", "CC BY 4.0", "CC0 1.0"
    copyright_holder: { type: 'varchar(500)' },    // photographer / creator name
    source_url:       { type: 'varchar(1000)' },   // page URL where asset was obtained
    uploader:         { type: 'varchar(200)' },    // who added it to this system
  });
};

exports.down = (pgm) => {
  pgm.dropColumns('shared_assets', ['license', 'copyright_holder', 'source_url', 'uploader']);
};
