Code Monkey home page Code Monkey logo

linebot_django_splitter's Introduction

Linebot + Django 分帳小工具 Splitter 實作

  • targets:Linebot + Django framework, Splitter tool implementation.

Splitter 指令

  1. 查詢指令:ss

  2. 新增:sscreate/ssc {item} {name1} {cost1} {name2} {cost2}...

  3. 列出:sslist/ssl

  4. 修改:ssupdate/ssu {index} {item} {name1} {cost1} {name2} {cost2}...

  5. 刪除:ssdelete/ssd {index}

  6. 統計:sstotal/sst

  7. 清空:ssclearclearclear

資料庫規劃

Main_Database

data_id item_field name_field cost_field time_field
Primary Key CharField CharField CharField DateTimeField

Order_Data

group_id order_id Main_Database
CharField IntegerField Foreign Key

Foreign Key

Link Order_Data.order_id to Main_Database.data_id

class Main_Database(models.Model):
    data_id = models.AutoField(primary_key=True)
    item_field = models.CharField(max_length=200, blank=True, null=False)
    name_field = models.CharField(max_length=200, blank=True, null=False)
    cost_field = models.CharField(max_length=200, blank=True, null=False)
    time_field = models.DateTimeField(auto_now_add=True)

class Order_Data(models.Model):
    order_id = models.IntegerField(blank=True, null=False)
    Main_Database = models.ForeignKey(Main_Database, on_delete=models.CASCADE)

linebot_django_splitter's People

Contributors

ycpranchu avatar

Watchers

 avatar

Forkers

qwe030609

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.