1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- "use strict";
- exports.__esModule = true;
- exports.Moderation = exports.Post = exports.Thread = exports.Category = exports.ProposalVote = exports.ProposalPost = exports.Proposal = exports.Member = exports.Event = exports.Era = exports.ConsulStake = exports.Consul = exports.Council = exports.Channel = exports.Block = exports.Balance = exports.Account = void 0;
- var account_1 = require("./account");
- exports.Account = account_1["default"];
- var balance_1 = require("./balance");
- exports.Balance = balance_1["default"];
- var block_1 = require("./block");
- exports.Block = block_1["default"];
- var channel_1 = require("./channel");
- exports.Channel = channel_1["default"];
- var council_1 = require("./council");
- exports.Council = council_1["default"];
- var councilseat_1 = require("./councilseat");
- exports.Consul = councilseat_1["default"];
- var councilstake_1 = require("./councilstake");
- exports.ConsulStake = councilstake_1["default"];
- var era_1 = require("./era");
- exports.Era = era_1["default"];
- var event_1 = require("./event");
- exports.Event = event_1["default"];
- var proposal_1 = require("./proposal");
- exports.Proposal = proposal_1["default"];
- var proposalpost_1 = require("./proposalpost");
- exports.ProposalPost = proposalpost_1["default"];
- var proposalvote_1 = require("./proposalvote");
- exports.ProposalVote = proposalvote_1["default"];
- var member_1 = require("./member");
- exports.Member = member_1["default"];
- var category_1 = require("./category");
- exports.Category = category_1["default"];
- var thread_1 = require("./thread");
- exports.Thread = thread_1["default"];
- var post_1 = require("./post");
- exports.Post = post_1["default"];
- var moderation_1 = require("./moderation");
- exports.Moderation = moderation_1["default"];
- member_1["default"].hasMany(account_1["default"]);
- member_1["default"].belongsTo(account_1["default"], { as: 'root', constraints: false });
- member_1["default"].belongsTo(account_1["default"], { as: 'controller', constraints: false });
- member_1["default"].hasMany(councilseat_1["default"], { as: 'terms' });
- member_1["default"].hasMany(councilstake_1["default"], { as: 'votes' });
- member_1["default"].hasMany(category_1["default"]);
- member_1["default"].hasMany(thread_1["default"]);
- member_1["default"].hasMany(post_1["default"]);
- member_1["default"].hasMany(proposal_1["default"]);
- account_1["default"].belongsTo(member_1["default"]);
- account_1["default"].hasMany(balance_1["default"]);
- account_1["default"].hasMany(block_1["default"], { as: 'validated', foreignKey: 'validatorKey' });
- account_1["default"].hasMany(moderation_1["default"]);
- balance_1["default"].belongsTo(account_1["default"]);
- balance_1["default"].belongsTo(era_1["default"]);
- era_1["default"].hasMany(balance_1["default"]);
- era_1["default"].hasMany(block_1["default"]);
- block_1["default"].belongsTo(account_1["default"], { as: 'validator' });
- block_1["default"].belongsTo(era_1["default"]);
- block_1["default"].hasMany(event_1["default"]);
- event_1["default"].belongsTo(block_1["default"]);
- council_1["default"].hasMany(councilseat_1["default"]);
- council_1["default"].hasMany(proposal_1["default"]);
- councilseat_1["default"].belongsTo(council_1["default"]);
- councilseat_1["default"].belongsTo(member_1["default"]);
- councilseat_1["default"].hasMany(councilstake_1["default"], { as: 'voters' });
- councilseat_1["default"].hasMany(proposalvote_1["default"], { as: 'votes' });
- councilstake_1["default"].belongsTo(councilseat_1["default"]);
- councilstake_1["default"].belongsTo(member_1["default"]);
- channel_1["default"].belongsTo(member_1["default"], { as: 'owner' });
- category_1["default"].hasMany(thread_1["default"]);
- category_1["default"].belongsTo(moderation_1["default"]);
- thread_1["default"].belongsTo(moderation_1["default"]);
- post_1["default"].belongsTo(moderation_1["default"]);
- moderation_1["default"].hasMany(category_1["default"]);
- moderation_1["default"].hasMany(thread_1["default"]);
- moderation_1["default"].hasMany(post_1["default"]);
- moderation_1["default"].belongsTo(account_1["default"], { as: 'moderator' });
- thread_1["default"].belongsTo(category_1["default"]);
- thread_1["default"].belongsTo(member_1["default"], { as: 'creator' });
- thread_1["default"].hasMany(post_1["default"]);
- post_1["default"].belongsTo(thread_1["default"]);
- post_1["default"].belongsTo(member_1["default"], { as: 'author' });
- post_1["default"].belongsTo(member_1["default"], { as: 'moderator' });
- proposal_1["default"].belongsTo(member_1["default"], { as: 'author' });
- proposal_1["default"].hasMany(proposalpost_1["default"], { as: 'posts' });
- proposal_1["default"].hasMany(proposalvote_1["default"], { as: 'votes' });
- proposalpost_1["default"].belongsTo(proposal_1["default"]);
- proposalpost_1["default"].belongsTo(member_1["default"], { as: 'author' });
- proposalvote_1["default"].belongsTo(proposal_1["default"]);
- proposalvote_1["default"].belongsTo(councilseat_1["default"]);
- proposalvote_1["default"].belongsTo(member_1["default"]);
|