# com.suibari.nagi.cardGet

> Published by [suibari.com](https://lexicon.garden/identity/did:plc:uixgxpiqf4i63p6rgpu7ytmx)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.cardGet)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.cardGet/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uixgxpiqf4i63p6rgpu7ytmx/com.suibari.nagi.cardGet/examples)

## Definitions

### `com.suibari.nagi.cardGet`

**Type**: `record`

全肯定カードを引いたことの控え。**権威ではない。** ドローの結果を決めるのは AppView で、このレコードは「引いた」という申告にすぎず、card_draws / card_instances と突き合わせて一致しないものは索引しない。ユーザーの repo に置くのは、リアクションの subject が実在の PDS レコードを要求するため（本人の repo なら通知の宛先もそのまま本人になる）。rkey は "{drawDate}-{source}"、記念日は "{drawDate}-anniv-{slot}"。

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `card` | `ref` → `com.suibari.nagi.zenkatsu#cardRef` | Yes |  |
| `source` | `string` | Yes | 取得枠。my Nagi の通常枠、他ユーザーへのリアクション枠、記念日の贈り物。 |
| `drawDate` | `string` | Yes | 引いた日。JST 4:00 始まりの "YYYY-MM-DD"。 |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "com.suibari.nagi.cardGet",
  "defs": {
    "main": {
      "key": "any",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "card",
          "drawDate",
          "source",
          "createdAt"
        ],
        "properties": {
          "card": {
            "ref": "com.suibari.nagi.zenkatsu#cardRef",
            "type": "ref"
          },
          "source": {
            "type": "string",
            "maxLength": 20,
            "description": "取得枠。my Nagi の通常枠、他ユーザーへのリアクション枠、記念日の贈り物。",
            "knownValues": [
              "my_nagi",
              "reaction",
              "anniversary"
            ]
          },
          "drawDate": {
            "type": "string",
            "maxLength": 10,
            "description": "引いた日。JST 4:00 始まりの \"YYYY-MM-DD\"。"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "全肯定カードを引いたことの控え。**権威ではない。** ドローの結果を決めるのは AppView で、このレコードは「引いた」という申告にすぎず、card_draws / card_instances と突き合わせて一致しないものは索引しない。ユーザーの repo に置くのは、リアクションの subject が実在の PDS レコードを要求するため（本人の repo なら通知の宛先もそのまま本人になる）。rkey は \"{drawDate}-{source}\"、記念日は \"{drawDate}-anniv-{slot}\"。"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
