Write a SpacetimeDB backend module in TypeScript that defines a struct type and uses it in a table.

TYPES
- Position
  - x: number (i32)
  - y: number (i32)

TABLE
- entity
  - Fields:
    - id: number (i32, primary key)
    - pos: Position