Giter VIP home page Giter VIP logo

Comments (5)

richjoslin avatar richjoslin commented on August 19, 2024

We've decided on the suffix _on.

These will be the reserved column names that are also required on all db tables:

  • id
  • sort_order
  • created_on
  • modified_on
  • deleted_on

from rivety.

jaybill avatar jaybill commented on August 19, 2024

We might not want to require them, but just handle them in the abstract model class if you don't expressly set them. There's plenty of cases (lookup tables, for example) where the data doesn't change or that I don't ever care when it was created.

from rivety.

jaybill avatar jaybill commented on August 19, 2024

I'm going to add this to the abstract model class as described above. I'm also going to take the modified_on business out of the crudifier templates.

from rivety.

jaybill avatar jaybill commented on August 19, 2024

So we use "updated_on" in a lot of places, should we just standardize on "modified_on" instead? I'm going to check for both in the model, just in case.

from rivety.

jaybill avatar jaybill commented on August 19, 2024

I've added the checks for modified_on, created_on and for legacy purposes, updated_on. I did not do "deleted_on" because we need to talk about soft deletes. I'm also not sure about sort order. I'll leave this ticket open for to discuss.

from rivety.

Related Issues (20)

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.