Skip to content

Shared columns? #892

@magick93

Description

@magick93

Hi

I'm interested to know how I might create a collection of columns that can be reused across multiple tables.

For example, this is what I'm trying - though its not working:

let now:Value =  Value('now()');
let created = {
    createdAt: {
    type: 'timestamp',
    notNull: true,
    default: now,
  }}

The idea being, I could create columns that are commonly used, such as createdAt and modifiedAt and reuse them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions