This commit is contained in:
Anurag Shivarathri
2023-01-04 03:30:23 +05:30
committed by GitHub
parent 5ff22953ab
commit ed69eacbe7
6 changed files with 7 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ export default class MyChannelModel extends Model implements MyChannelModelInter
static associations: Associations = {
[CHANNEL]: {type: 'belongs_to', key: 'id'},
[CATEGORY_CHANNEL]: {type: 'has_many', foreignKey: 'channel_id'},
[MY_CHANNEL_SETTINGS]: {type: 'has_many', foreignKey: 'id'},
};
/** last_post_at : The timestamp for any last post on this channel */