export const workersTable = pgTable('workers', {
workerId: integer('worker_id').notNull().primaryKey(),
name: text('name').notNull(),
peopleLeaderWorkerId: integer('people_leader_worker_id').notNull(),
username: text('username').notNull(),
active: boolean('active').notNull().default(true),
firstActive: timestamp('first_active').notNull().defaultNow(),
lastModified: timestamp('last_modified').notNull().defaultNow(), // Last time any fields except the lastModified field was updated
});
export const workersTable = pgTable('workers', {
workerId: integer('worker_id').notNull().primaryKey(),
name: text('name').notNull(),
peopleLeaderWorkerId: integer('people_leader_worker_id').notNull(),
username: text('username').notNull(),
active: boolean('active').notNull().default(true),
firstActive: timestamp('first_active').notNull().defaultNow(),
lastModified: timestamp('last_modified').notNull().defaultNow(), // Last time any fields except the lastModified field was updated
});