export const names = sqliteTable('names', {
id: integer('id').primaryKey(),
name: text('name').notNull(),
createdAt: integer('created_at', { mode: 'timestamp' }).notNull(),
})
export type Name = InferSelectModel<typeof names>
export const faves = sqliteTable('faves', {
id: integer('id').primaryKey(),
firstName: integer('first_name_id').references(() => names.id),
middleName: integer('middle_name_id').references(() => names.id),
createdAt: integer('created_at', { mode: 'timestamp' }).notNull(),
})
export const names = sqliteTable('names', {
id: integer('id').primaryKey(),
name: text('name').notNull(),
createdAt: integer('created_at', { mode: 'timestamp' }).notNull(),
})
export type Name = InferSelectModel<typeof names>
export const faves = sqliteTable('faves', {
id: integer('id').primaryKey(),
firstName: integer('first_name_id').references(() => names.id),
middleName: integer('middle_name_id').references(() => names.id),
createdAt: integer('created_at', { mode: 'timestamp' }).notNull(),
})