export const channels = sqliteTable('channels', {
id: text('id').primaryKey().notNull(),
channelId: text('channelId').notNull(),
ownerId: text('ownerId').notNull(),
participants: text('participants', {mode: 'json'}).$type<string[]>().$default(() => []),
channelName: text('channelName').notNull(),
lastMessage: text('lastMessage').notNull(),
lastMessageTimestamp: integer('lastMessageTimestamp', { mode: 'timestamp_ms' }).notNull(),
});
export const channels = sqliteTable('channels', {
id: text('id').primaryKey().notNull(),
channelId: text('channelId').notNull(),
ownerId: text('ownerId').notNull(),
participants: text('participants', {mode: 'json'}).$type<string[]>().$default(() => []),
channelName: text('channelName').notNull(),
lastMessage: text('lastMessage').notNull(),
lastMessageTimestamp: integer('lastMessageTimestamp', { mode: 'timestamp_ms' }).notNull(),
});