Skip to content

Commit

Permalink
feat(models): All current models are switched to the 2014- prefixed…
Browse files Browse the repository at this point in the history
… ones
  • Loading branch information
bagelbits committed Dec 25, 2024
1 parent 3a03353 commit aafe8c7
Show file tree
Hide file tree
Showing 27 changed files with 28 additions and 30 deletions.
6 changes: 2 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
version: '3.8'

services:
db:
image: ghcr.io/5e-bits/5e-database:latest
# build: ../5e-database
# image: ghcr.io/5e-bits/5e-database:latest
build: ../5e-database
ports:
- '27017:27017'

Expand Down
2 changes: 1 addition & 1 deletion src/models/abilityScore/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const AbilityScoreSchema = new Schema<AbilityScore>({
url: { type: String, index: true },
});

export default model('AbilityScore', AbilityScoreSchema, 'ability-scores');
export default model('AbilityScore', AbilityScoreSchema, '2014-ability-scores');
2 changes: 1 addition & 1 deletion src/models/alignment/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const AlignmentSchema = new Schema<Alignment>({
url: { type: String, index: true },
});

export default model('Alignment', AlignmentSchema, 'alignments');
export default model('Alignment', AlignmentSchema, '2014-alignments');
2 changes: 1 addition & 1 deletion src/models/background/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ const BackgroundSchema = new Schema<Background>({
flaws: ChoiceSchema,
});

export default model('Background', BackgroundSchema, 'backgrounds');
export default model('Background', BackgroundSchema, '2014-backgrounds');
2 changes: 1 addition & 1 deletion src/models/class/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ const ClassSchema = new Schema<Class>({
url: { type: String, index: true },
});

export default model('Class', ClassSchema, 'classes');
export default model('Class', ClassSchema, '2014-classes');
2 changes: 1 addition & 1 deletion src/models/collection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ const CollectionSchema = new Schema<Collection>({
index: { type: String, index: true },
});

export default model('Collection', CollectionSchema, 'collections');
export default model('Collection', CollectionSchema, '2014-collections');
2 changes: 1 addition & 1 deletion src/models/condition/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ const ConditionSchema = new Schema<Condition>({
url: { type: String, index: true },
});

export default model('Condition', ConditionSchema, 'conditions');
export default model('Condition', ConditionSchema, '2014-conditions');
2 changes: 1 addition & 1 deletion src/models/damageType/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ const DamageTypeSchema = new Schema<DamageType>({
url: { type: String, index: true },
});

export default model('DamageType', DamageTypeSchema, 'damage-types');
export default model('DamageType', DamageTypeSchema, '2014-damage-types');
2 changes: 1 addition & 1 deletion src/models/equipment/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ const EquipmentSchema = new Schema<Equipment>({
weight: { type: Number, index: true },
});

export default model('Equipment', EquipmentSchema, 'equipment');
export default model('Equipment', EquipmentSchema, '2014-equipment');
2 changes: 1 addition & 1 deletion src/models/equipmentCategory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ const EquipmentCategorySchema = new Schema<EquipmentCategory>({
url: { type: String, index: true },
});

export default model('EquipmentCategory', EquipmentCategorySchema, 'equipment-categories');
export default model('EquipmentCategory', EquipmentCategorySchema, '2014-equipment-categories');
2 changes: 1 addition & 1 deletion src/models/feat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ const FeatSchema = new Schema<Feat>({
url: { type: String, index: true },
});

export default model('Feat', FeatSchema, 'feats');
export default model('Feat', FeatSchema, '2014-feats');
2 changes: 1 addition & 1 deletion src/models/feature/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ const FeatureSchema = new Schema<Feature>({
url: { type: String, index: true },
});

export default model('Feature', FeatureSchema, 'features');
export default model('Feature', FeatureSchema, '2014-features');
2 changes: 1 addition & 1 deletion src/models/language/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const LanguageSchema = new Schema<Language>({
url: { type: String, index: true },
});

export default model('Language', LanguageSchema, 'languages');
export default model('Language', LanguageSchema, '2014-languages');
2 changes: 1 addition & 1 deletion src/models/level/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ const LevelSchema = new Schema<Level>({
url: { type: String, index: true },
});

export default model('Level', LevelSchema, 'levels');
export default model('Level', LevelSchema, '2014-levels');
2 changes: 1 addition & 1 deletion src/models/magicItem/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ const MagicItemSchema = new Schema<MagicItem>({
variant: Boolean,
});

export default model('MagicItem', MagicItemSchema, 'magic-items');
export default model('MagicItem', MagicItemSchema, '2014-magic-items');
2 changes: 1 addition & 1 deletion src/models/magicSchool/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ const MagicSchoolSchema = new Schema<MagicSchool>({
url: { type: String, index: true },
});

export default model('MagicSchool', MagicSchoolSchema, 'magic-schools');
export default model('MagicSchool', MagicSchoolSchema, '2014-magic-schools');
2 changes: 1 addition & 1 deletion src/models/monster/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@ const Monster = new Schema<Monster>({
xp: { type: Number, index: true },
});

export default model('Monster', Monster, 'monsters');
export default model('Monster', Monster, '2014-monsters');
2 changes: 1 addition & 1 deletion src/models/proficiency/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ const ProficiencySchema = new Schema<Proficiency>({
url: { type: String, index: true },
});

export default model('Proficiency', ProficiencySchema, 'proficiencies');
export default model('Proficiency', ProficiencySchema, '2014-proficiencies');
2 changes: 1 addition & 1 deletion src/models/race/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ const RaceSchema = new Schema<Race>({
url: { type: String, index: true },
});

export default model('Race', RaceSchema, 'races');
export default model('Race', RaceSchema, '2014-races');
2 changes: 1 addition & 1 deletion src/models/rule/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const RuleSchema = new Schema<Rule>({
url: { type: String, index: true },
});

export default model('Rule', RuleSchema, 'rules');
export default model('Rule', RuleSchema, '2014-rules');
2 changes: 1 addition & 1 deletion src/models/ruleSection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ const RuleSectionSchema = new Schema<RuleSection>({
url: { type: String, index: true },
});

export default model('RuleSection', RuleSectionSchema, 'rule-sections');
export default model('RuleSection', RuleSectionSchema, '2014-rule-sections');
2 changes: 1 addition & 1 deletion src/models/skill/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ const SkillSchema = new Schema<Skill>({
url: { type: String, index: true },
});

export default model('Skill', SkillSchema, 'skills');
export default model('Skill', SkillSchema, '2014-skills');
2 changes: 1 addition & 1 deletion src/models/spell/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ const Spell = new Schema({
url: { type: String, index: true },
});

export default model('Spell', Spell, 'spells');
export default model('Spell', Spell, '2014-spells');
2 changes: 1 addition & 1 deletion src/models/subclass/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ const SubclassSchema = new Schema<Subclass>({
url: { type: String, index: true },
});

export default model('Subclass', SubclassSchema, 'subclasses');
export default model('Subclass', SubclassSchema, '2014-subclasses');
2 changes: 1 addition & 1 deletion src/models/subrace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ const Subrace = new Schema<Subrace>({
url: { type: String, index: true },
});

export default model('Subrace', Subrace, 'subraces');
export default model('Subrace', Subrace, '2014-subraces');
2 changes: 1 addition & 1 deletion src/models/trait/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ const TraitSchema = new Schema<Trait>({
url: { type: String, index: true },
});

export default model('Trait', TraitSchema, 'traits');
export default model('Trait', TraitSchema, '2014-traits');
2 changes: 1 addition & 1 deletion src/models/weaponProperty/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ const WeaponPropertySchema = new Schema<WeaponProperty>({
url: { type: String, index: true },
});

export default model('WeaponProperty', WeaponPropertySchema, 'weapon-properties');
export default model('WeaponProperty', WeaponPropertySchema, '2014-weapon-properties');

0 comments on commit aafe8c7

Please sign in to comment.