Skip to content

Commit

Permalink
feat: Add personal_secret_info column and role:secret
Browse files Browse the repository at this point in the history
  • Loading branch information
5annaha committed Feb 17, 2024
1 parent bbee492 commit 756847e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion db/data/characters.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ Mark Bolton is the real father of Jill Montoya. Mark Bolton had a short affair w
20036,bio37,O05NNM,FALSE,Szymon,Kovalenko,,,,,,,,,Mx,482,482157C847483,Unknown,Caelena,Faith of the High Science,Colonial citizenship,Unknown,Lower,Defiance,None,None,Farmer,Malak Kovalenko,Child,Nadia Kovalenko,Spouse,,,,,,,,,,,,,,,,,,,,,,,,,,FALSE,,,,,482,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE
20046,bio47,BXV5I0,FALSE,Gira,Hayakawa,,"Isha Hayakawas daughter, who is overly important to them. Isha refuses to even think about the possibility that she didn’t survive. She was stationed at ESS Harbinger. Hedly Walker was like an other parent to them after Isha and Hedly got married. Hedly though left Gira alone once and Isha couldn't forgive them for such an action and divorced Hedly because of that. Gira knows Hedly doesn't have pure flours in their bag (criminal activity).
Gira contacted their aunt Lane Thomas (Hayakawa). They wanted to know why Lane left their family and have been so hard to find. Lane hasn’t answered Gira yet.",Will be the pilot of the ship which is sent from the Harbinger after the mutiny,,,,,,Pilot,520,520336E263834,Present and accounted for,Ellarion,Faith of the High Science,Full citizenship,ESS Harbinger,Middle,Wisdom,Yellows,Junior Lieutenant,Pilot,Isha Hayakawa,Parent,Mero Rasmussen,Parent,Roi Hayakawa,Grandparent,Akun Hayakawa,Grandparent,Lane Hayakawa,Relative,,,,,,,,,,,,,,,,,A,542,AB,FALSE,Peanuts & Cashews,,,,520,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE
20047,bio48,WDE9H0,FALSE,,Bennett,,,,,,,,,Doctor,493,493099E234777,Present and accounted for,Ellarion,Faith of the High Science,Full citizenship,ESS Memory,Middle,Wisdom,None,Cadet,Scientist,Reiss Bennett,Sibling,Yves Bennett,Sibling,,,,,,,,,,,,,,,,,,,"509 Basic training
20047,bio48,WDE9H0,FALSE,Kara,Bennett,,,,,,,,,Doctor,493,493099E234777,Present and accounted for,Ellarion,Faith of the High Science,Full citizenship,ESS Memory,Middle,Wisdom,None,Cadet,Scientist,Reiss Bennett,Sibling,Yves Bennett,Sibling,,,,,,,,,,,,,,,,,,,"509 Basic training
510 Promoted to Recruit
538 Promoted to Cadet",,,,C,541,AB,FALSE,,,,,493,FALSE,TRUE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,FALSE,TRUE,FALSE,FALSE
20048,bio49,EZJHK1,FALSE,Merissa,Voight,,,,,,,,,Mx,508,508134E062346,Present and accounted for,Ellarion,Faith of the High Science,Full citizenship,ESS Polaris,Middle,Strength,Blues,Recruit,Scientist,,,,,,,,,,,,,,,,,,,,,,,"524 Basic training
Expand Down
15 changes: 15 additions & 0 deletions db/migrations/20240217115233_add-personal-secret-info-column.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Knex } from "knex";


export async function up(knex: Knex): Promise<void> {
return knex.schema.alterTable('person', (table) => {
table.text('personal_secret_info').nullable();
});
}


export async function down(knex: Knex): Promise<void> {
return knex.schema.alterTable('person', (table) => {
table.dropColumn('personal_secret_info');
});
}
1 change: 1 addition & 0 deletions src/models/person.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export const Person = Bookshelf.Model.extend({
'status',
'home_planet',
'is_visible',
'card_id',
'character_group',
'is_character',
],
Expand Down
1 change: 1 addition & 0 deletions src/utils/person-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const characterFields = {
const groups = new Set([
'role:medic',
'role:security',
'role:secret',
'role:science',
'role:engineer',
'role:captain',
Expand Down

0 comments on commit 756847e

Please sign in to comment.