mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 21:47:20 +00:00
relates to https://github.com/fleetdm/confidential/pull/9650 --------- Co-authored-by: Eric <[email protected]>
65 lines
1.8 KiB
JavaScript
Vendored
65 lines
1.8 KiB
JavaScript
Vendored
/**
|
|
* AdCampaign.js
|
|
*
|
|
* @description :: A model definition represents a database table/collection.
|
|
* @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
attributes: {
|
|
|
|
// ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗
|
|
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
|
|
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
|
|
persona: {
|
|
type: 'string',
|
|
isIn: [
|
|
'elf.it-major-mdm',
|
|
// 'elf.it-gap-filler-mdm',
|
|
// 'elf.it-misc',
|
|
// 'elf.security-vm',
|
|
// 'elf.security-misc',
|
|
// 'santa.it-major-mdm',
|
|
// 'santa.it-gap-filler-mdm',
|
|
// 'santa.it-misc',
|
|
// 'santa.security-vm',
|
|
// 'santa.security-misc',
|
|
],
|
|
required: true
|
|
},
|
|
|
|
name: {
|
|
type: 'string',
|
|
example: 'elf.it-major-mdm - 2024-02-24 @ 6:11pm',
|
|
required: true,
|
|
},
|
|
|
|
linkedinCampaignUrn: {
|
|
type: 'string',
|
|
example: 'urn:li:sponsoredCampaign:379399199',
|
|
required: true
|
|
},
|
|
|
|
isLatest: {
|
|
type: 'boolean',
|
|
description: 'Whether this is the latest and greatest campaign for this persona.',
|
|
},
|
|
|
|
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
|
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
|
|
// ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝
|
|
linkedinCompanyIds: {
|
|
type: 'json',
|
|
example: [ 8482494, 28328 ],
|
|
defaultsTo: [],
|
|
},
|
|
|
|
// ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
|
|
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
|
|
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
|
|
|
|
},
|
|
|
|
};
|
|
|