mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
- we are not setting this property, and it's inclusion in this model with a default false value meant that there were no errors with seeded data, but with the data returned from the db_manipulation there was.
53 lines
1.7 KiB
JavaScript
53 lines
1.7 KiB
JavaScript
import uuid from 'uuid/v4'
|
|
|
|
module.exports = {
|
|
id: { type: 'string', primary: true, default: uuid },
|
|
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
|
|
updatedAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
|
|
rule: { type: 'string', default: 'latestReviewUpdatedAtRules' },
|
|
closed: { type: 'boolean', default: false },
|
|
belongsTo: {
|
|
type: 'relationship',
|
|
relationship: 'BELONGS_TO',
|
|
target: ['User', 'Comment', 'Post'],
|
|
direction: 'out',
|
|
},
|
|
filed: {
|
|
type: 'relationship',
|
|
relationship: 'FILED',
|
|
target: 'User',
|
|
direction: 'in',
|
|
properties: {
|
|
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
|
|
resourceId: { type: 'string', primary: true, default: uuid },
|
|
reasonCategory: {
|
|
type: 'string',
|
|
valid: [
|
|
'other',
|
|
'discrimination_etc',
|
|
'pornographic_content_links',
|
|
'glorific_trivia_of_cruel_inhuman_acts',
|
|
'doxing',
|
|
'intentional_intimidation_stalking_persecution',
|
|
'advert_products_services_commercial',
|
|
'criminal_behavior_violation_german_law',
|
|
],
|
|
invalid: [null],
|
|
},
|
|
reasonDescription: { type: 'string', allow: [null] },
|
|
},
|
|
},
|
|
reviewed: {
|
|
type: 'relationship',
|
|
relationship: 'REVIEWED',
|
|
target: 'User',
|
|
direction: 'in',
|
|
properties: {
|
|
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
|
|
updatedAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
|
|
disable: { type: 'boolean', default: false },
|
|
closed: { type: 'boolean', default: false },
|
|
},
|
|
},
|
|
}
|