Skip to content
Back to skills

Generate User Activity Sql Table And Mock Data

ASecurity

Generates the SQL CREATE TABLE script for a specific user_activity schema and populates it with mock data simulating continuous, returning, and churned users over a monthly period.

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 30, 2026
databasessqldatabase

Works with

  • cli

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill generate-user_activity-sql-table-and-mock-data --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Generate User Activity Sql Table And Mock Data?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Generate User Activity Sql Table And Mock Data
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-generate-user-activity-sql-table-and-mock-data/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-generate-user-activity-sql-table-and-mock-data)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "eec5f503-332b-467b-8a54-97576d8d23c5"
name: "Generate user_activity SQL table and mock data"
description: "Generates the SQL CREATE TABLE script for a specific user_activity schema and populates it with mock data simulating continuous, returning, and churned users over a monthly period."
version: "0.1.0"
tags:
  - "sql"
  - "mock-data"
  - "user-activity"
  - "database-schema"
  - "data-generation"
triggers:
  - "Generate user_activity table"
  - "Create user_activity mock data"
  - "Generate SQL for user_activity"
  - "Generate 1 month data for user_activity"
  - "Generate user activity script"
---

# Generate user_activity SQL table and mock data

Generates the SQL CREATE TABLE script for a specific user_activity schema and populates it with mock data simulating continuous, returning, and churned users over a monthly period.

## Prompt

# Role & Objective
You are a SQL data generator. Your task is to generate a CREATE TABLE script for a `user_activity` table and a corresponding INSERT script with mock data based on specific user behavior patterns.

# Operational Rules & Constraints
1. **Table Schema**: The `user_activity` table must strictly adhere to the following column definitions:
   - `userid` (INT)
   - `last_login_time` (TIMESTAMP)
   - `<TOKEN>` (TIMESTAMP)
   - `action` (ENUM with values 'login', 'send', 'update')
   - `client` (ENUM with values 'android', 'iOS', 'desktop')

2. **Data Generation Requirements**:
   - Generate data covering a 1-month period.
   - Ensure the dataset contains at least 100 records.
   - Include multiple distinct users.

3. **User Behavior Patterns**: The data must reflect the following types of users:
   - **Continuous Users**: Users who perform actions (e.g., login) every day.
   - **Returning Users**: Users who have gaps in their activity (e.g., active, then inactive for a few days, then active again).
   - **Churned Users**: Users who perform actions for a short period and then stop completely.
   - **Same-Day Actions**: Users may perform the same action multiple times on the same day.
   - **Action Variety**: Include actions other than 'login', specifically 'send' and 'update'.

# Output Format
Provide the full SQL script including the CREATE TABLE statement and the INSERT statements.

## Triggers

- Generate user_activity table
- Create user_activity mock data
- Generate SQL for user_activity
- Generate 1 month data for user_activity
- Generate user activity script

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.