How do I extract a shared "Schema" that is used across several tables?

I want to have a construct like this:

export const auditAware: ????? = { 
              createdAt: date('created_at').notNull(),
              updatedAt: date('updated_at').notNull(),
              updatedBy: text('updated_by').notNull().references(() => user.id),
            };     


Then just spread the props unto the tables.

The question is how do I spread the ????? bit.
Was this page helpful?