export const accounts = pgTable("accounts", {
id: serial("id").primaryKey(),
address: text("address").notNull(),
createdAt: timestamp("created_at").defaultNow().notNull(),
updatedAt: timestamp("updated_at").defaultNow(),
points: integer("points").default(0).notNull(),
});
export const nfts = pgTable("nfts", {
id: serial("id").primaryKey(),
contractAddress: text("contract_address").notNull(),
tokenId: integer("token_id").notNull(),
accountId: integer("account_id").references(() => accounts.id)
});
export const accounts = pgTable("accounts", {
id: serial("id").primaryKey(),
address: text("address").notNull(),
createdAt: timestamp("created_at").defaultNow().notNull(),
updatedAt: timestamp("updated_at").defaultNow(),
points: integer("points").default(0).notNull(),
});
export const nfts = pgTable("nfts", {
id: serial("id").primaryKey(),
contractAddress: text("contract_address").notNull(),
tokenId: integer("token_id").notNull(),
accountId: integer("account_id").references(() => accounts.id)
});