Skip to content

Better table definition support #8

@spion

Description

@spion

Would be something like this (TypeScript + annotations)

interface UserRow { id: string; name string }

@db.table
class Users extends Table<UserRow> {
  @db.primaryKey
  @db.dataType('uuid')
  public id: Column<string>;

  @db.dataType('text')
  public name: Column<string>;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions