@atomic-trade/db

0.0.13 • Public • Published

@atomic-trade/db

A Prisma database package for Atomic Trade, providing the database schema and client for the e-commerce platform. This package handles all database operations and relationships for the Atomic Trade ecosystem.

Features

  • 📦 Prisma schema and client for Atomic Trade
  • 🔒 Type-safe database operations
  • ⚡️ Optimized database queries
  • 🔄 Database migrations management
  • 📊 Comprehensive data models for e-commerce
  • 🛠️ Development tools and utilities

Installation

# Using npm
npm install @atomic-trade/db

# Using yarn
yarn add @atomic-trade/db

# Using pnpm
pnpm add @atomic-trade/db

Requirements

  • Node.js >= 18.0.0
  • PostgreSQL >= 14.0.0

Environment Variables

  • DATABASE_URL - The connection URL for your PostgreSQL database

Development

# Install dependencies
pnpm install

# Generate Prisma client
pnpm prisma generate

# Run database migrations
pnpm prisma migrate dev

# Format code
pnpm format:write

# Lint code
pnpm lint

Database Schema

The package includes Prisma schema definitions for:

  • Users and authentication
  • Products and inventory
  • Orders and transactions
  • Payments and refunds
  • And more...

License

This project is licensed under the terms of the license included in the repository.

Author

Andrew Hunn

Readme

Keywords

none

Package Sidebar

Install

npm i @atomic-trade/db

Weekly Downloads

23

Version

0.0.13

License

none

Unpacked Size

33.9 kB

Total Files

22

Last publish

Collaborators

  • ahunn