Add climbing level to database

I spent a lot of time trying to make this use enums for the entire
data path. Unfortunately, I ran into a few issues. Firstly, I couldn't
figure out how make our Go SQL code happy with postgresql enums. I
kept getting errors about `unknown oid`. Secondly, I couldn't figure
out how to de-duplicate the enum between `submit_data_scouting.fbs`
and `request_data_scouting_response.fbs`. The generated Go code
doesn't import the dependency properly.

All this turned into an enum at the flatbuffer and TypeScript level,
but just an integer at the Go/postgres level.

A future patch can deal with this. Perhaps it'd be better to ignore
this altogether and just switch to a library like Gorm.

Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: Id6cbb5502fd77f3107514b8d7cb9df2923a9d5f9
diff --git a/scouting/www/entry/entry.module.ts b/scouting/www/entry/entry.module.ts
index b4d81c0..45a8a62 100644
--- a/scouting/www/entry/entry.module.ts
+++ b/scouting/www/entry/entry.module.ts
@@ -1,12 +1,21 @@
-import {NgModule} from '@angular/core';
+import {NgModule, Pipe, PipeTransform} from '@angular/core';
 import {CommonModule} from '@angular/common';
 import {FormsModule} from '@angular/forms';
 
 import {CounterButtonModule} from '../counter_button/counter_button.module';
 import {EntryComponent} from './entry.component';
 
+import {ClimbLevel} from 'org_frc971/scouting/webserver/requests/messages/submit_data_scouting_generated';
+
+@Pipe({name: 'levelToString'})
+export class LevelToStringPipe implements PipeTransform {
+  transform(level: ClimbLevel): string {
+    return ClimbLevel[level];
+  }
+}
+
 @NgModule({
-  declarations: [EntryComponent],
+  declarations: [EntryComponent, LevelToStringPipe],
   exports: [EntryComponent],
   imports: [CommonModule, FormsModule, CounterButtonModule],
 })