不止热门角色,我们为你扩展了更多细分角色分类,覆盖职场提升、商业增长、内容创作、学习规划等多元场景。精准匹配不同目标,让每一次生成都更有方向、更高命中率。
立即探索更多角色分类,找到属于你的增长加速器。
{
"tables": [
{
"table_name": "app_user",
"columns": [
{
"name": "id",
"type": "BIGINT",
"constraints": ["PRIMARY KEY"]
},
{
"name": "username",
"type": "VARCHAR(32)",
"constraints": ["NOT NULL"]
},
{
"name": "email",
"type": "VARCHAR(64)",
"constraints": []
},
{
"name": "created_at",
"type": "TIMESTAMP",
"constraints": ["DEFAULT CURRENT_TIMESTAMP"]
},
{
"name": "last_login",
"type": "TIMESTAMP",
"constraints": []
}
],
"constraints": {
"primary_key": "PRIMARY KEY (id)",
"foreign_keys": [],
"indexes": [
{
"name": "idx_app_user_email",
"columns": ["email"]
}
]
}
},
{
"table_name": "user_profile",
"columns": [
{
"name": "user_id",
"type": "BIGINT",
"constraints": ["PRIMARY KEY"]
},
{
"name": "nickname",
"type": "VARCHAR(32)",
"constraints": []
},
{
"name": "bio",
"type": "VARCHAR(128)",
"constraints": []
}
],
"constraints": {
"primary_key": "PRIMARY KEY (user_id)",
"foreign_keys": [
{
"name": "fk_user_profile_user",
"columns": ["user_id"],
"references": {
"table": "app_user",
"columns": ["id"]
}
}
],
"indexes": []
}
}
]
}
{
"tables": [
{
"table_name": "user_account",
"columns": [
{
"name": "user_id",
"type": "bigint",
"constraints": ["primary key", "auto_increment"]
},
{
"name": "user_name",
"type": "varchar(32)",
"constraints": ["not null"]
},
{
"name": "created_at",
"type": "timestamp",
"constraints": ["not null"]
}
],
"constraints": {
"primary_key": "pk_user_account(user_id)",
"foreign_keys": [],
"checks": [],
"indexes": []
}
},
{
"table_name": "orders",
"columns": [
{
"name": "order_id",
"type": "bigint",
"constraints": ["primary key", "auto_increment"]
},
{
"name": "user_id",
"type": "bigint",
"constraints": ["not null"]
},
{
"name": "status",
"type": "char(1)",
"constraints": ["not null", "default 'N'"]
},
{
"name": "total_amount",
"type": "numeric(10,2)",
"constraints": ["not null"]
},
{
"name": "created_at",
"type": "timestamp",
"constraints": ["not null"]
}
],
"constraints": {
"primary_key": "pk_orders(order_id)",
"foreign_keys": [
"fk_orders_user(user_id) REFERENCES user_account(user_id)"
],
"checks": [
"chk_status (status IN ('N','P','C'))"
],
"indexes": []
}
},
{
"table_name": "order_item",
"columns": [
{
"name": "item_id",
"type": "bigint",
"constraints": ["primary key", "auto_increment"]
},
{
"name": "order_id",
"type": "bigint",
"constraints": ["not null"]
},
{
"name": "sku_code",
"type": "varchar(32)",
"constraints": ["not null"]
},
{
"name": "qty",
"type": "integer",
"constraints": ["not null"]
},
{
"name": "price",
"type": "numeric(10,2)",
"constraints": ["not null"]
}
],
"constraints": {
"primary_key": "pk_order_item(item_id)",
"foreign_keys": [
"fk_item_order(order_id) REFERENCES orders(order_id)"
],
"checks": [],
"indexes": []
}
}
],
"relationship_graph": [
{
"name": "fk_orders_user",
"from": "orders.user_id",
"to": "user_account.user_id"
},
{
"name": "fk_item_order",
"from": "order_item.order_id",
"to": "orders.order_id"
}
]
}
{
"tables": [
{
"table_name": "fact_order_daily",
"comment": "每日订单指标",
"columns": [
{
"name": "date_key",
"type": "INT",
"constraints": [
"NOT NULL"
],
"comment": "日期键"
},
{
"name": "gmv",
"type": "DECIMAL(12,2)",
"constraints": [
"NOT NULL"
],
"comment": "交易额"
},
{
"name": "order_cnt",
"type": "INT",
"constraints": [
"NOT NULL"
],
"comment": "订单数"
}
],
"constraints": {
"primary_key": "date_key",
"foreign_keys": [
{
"name": "fk_fact_date",
"columns": [
"date_key"
],
"references": {
"table": "dim_date",
"columns": [
"date_key"
]
}
}
],
"indexes": [
"idx_fact_date"
]
}
},
{
"table_name": "dim_date",
"columns": [
{
"name": "date_key",
"type": "INT",
"constraints": [
"PRIMARY KEY"
],
"comment": "日期键"
},
{
"name": "date_value",
"type": "DATE",
"constraints": [
"NOT NULL"
],
"comment": "日期值"
},
{
"name": "month",
"type": "INT",
"constraints": [
"NOT NULL"
],
"comment": "月份"
}
],
"constraints": {
"primary_key": "date_key",
"foreign_keys": [],
"indexes": []
}
}
]
}
试用后开通会员即可无限使用