import { pgTable, timestamp, serial, text, pgEnum } from 'drizzle-orm/pg-core'
export const TeamSubscriptionTier = pgEnum('team_subscription_tier', ['basic', 'team', 'enterprise']);
export const teams = pgTable('teams', {
/**
* The auto-incrementing ID of the team.
*/
id: serial('team_id').primaryKey(),
/**
* The timestamp when the team was created.
*/
created_at: timestamp('created_at', { withTimezone: false }).defaultNow().notNull(),
/**
* The name of the team.
*/
name: text('name').notNull(),
/**
* The description of the team.
*/
description: text('description'),
/**
* The subscription tier of the team.
*/
subcription_tier: TeamSubscriptionTier('subscription_tier')
});
import { pgTable, timestamp, serial, text, pgEnum } from 'drizzle-orm/pg-core'
export const TeamSubscriptionTier = pgEnum('team_subscription_tier', ['basic', 'team', 'enterprise']);
export const teams = pgTable('teams', {
/**
* The auto-incrementing ID of the team.
*/
id: serial('team_id').primaryKey(),
/**
* The timestamp when the team was created.
*/
created_at: timestamp('created_at', { withTimezone: false }).defaultNow().notNull(),
/**
* The name of the team.
*/
name: text('name').notNull(),
/**
* The description of the team.
*/
description: text('description'),
/**
* The subscription tier of the team.
*/
subcription_tier: TeamSubscriptionTier('subscription_tier')
});